fix: use script command for PTY instead of modifying SSHService #39

Merged
rafaga21 merged 1 commits from feat/push-monitoring-agent into master 2026-06-11 19:02:35 -04:00
Owner
  • Revert SSHService exec() back to original (remove PTY parameter)
  • AgentService now writes installer to /tmp/ first, then runs via
    script -q -c to create a PTY for sudo (handles requiretty)
  • Falls back to direct sudo bash if script is unavailable
  • Cleans up temp files after execution
  • Added mkdir -p for /usr/local/bin in installer
  • Added file verification and byte-count after writing agent binary
- Revert SSHService exec() back to original (remove PTY parameter) - AgentService now writes installer to /tmp/ first, then runs via script -q -c to create a PTY for sudo (handles requiretty) - Falls back to direct sudo bash if script is unavailable - Cleans up temp files after execution - Added mkdir -p for /usr/local/bin in installer - Added file verification and byte-count after writing agent binary
rafaga21 added 1 commit 2026-06-11 19:02:01 -04:00
- Revert SSHService exec() back to original (remove PTY parameter)
- AgentService now writes installer to /tmp/ first, then runs via
  script -q -c to create a PTY for sudo (handles requiretty)
- Falls back to direct sudo bash if script is unavailable
- Cleans up temp files after execution
- Added mkdir -p for /usr/local/bin in installer
- Added file verification and byte-count after writing agent binary
rafaga21 merged commit 08ee59663b into master 2026-06-11 19:02:35 -04:00
rafaga21 deleted branch feat/push-monitoring-agent 2026-06-11 19:02:36 -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#39