fix: escape runtime vars in unquoted heredoc, eliminate sed dependency #48

Merged
rafaga21 merged 1 commits from feat/push-monitoring-agent-v2 into master 2026-06-11 20:34:06 -04:00
Owner

The unquoted EOF heredoc expands all $ at install time. Runtime
variables inside functions (CPU, RAM, AGENT_KEY, etc.) must be
escaped with $ to prevent premature expansion.

Also removed the fragile sed replace step entirely — values are now
embedded directly when the heredoc is expanded.

The unquoted EOF heredoc expands all $ at install time. Runtime variables inside functions (CPU, RAM, AGENT_KEY, etc.) must be escaped with $ to prevent premature expansion. Also removed the fragile sed replace step entirely — values are now embedded directly when the heredoc is expanded.
rafaga21 added 1 commit 2026-06-11 20:33:35 -04:00
The unquoted EOF heredoc expands all $ at install time. Runtime
variables inside functions (CPU, RAM, AGENT_KEY, etc.) must be
escaped with $ to prevent premature expansion.

Also removed the fragile sed replace step entirely — values are now
embedded directly when the heredoc is expanded.
rafaga21 merged commit 1d99bff390 into master 2026-06-11 20:34:06 -04:00
rafaga21 deleted branch feat/push-monitoring-agent-v2 2026-06-11 20:34:08 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: devlab/server-manager#48