fix: dual-mode installer — works with or without sudo #41

Merged
rafaga21 merged 1 commits from feat/push-monitoring-agent into master 2026-06-11 19:14:59 -04:00
Owner

Installer now detects at runtime if it can get root access:

  • Root/NOPASSWD sudo: installs to system directories with systemd
  • No root: installs to ~/.local/bin with @reboot cron job

Self-elevation uses 'script -qc sudo bash' for requiretty, or falls
back to user mode without hanging on password prompts.

Uninstaller checks both system and user paths.

Installer now detects at runtime if it can get root access: - Root/NOPASSWD sudo: installs to system directories with systemd - No root: installs to ~/.local/bin with @reboot cron job Self-elevation uses 'script -qc sudo bash' for requiretty, or falls back to user mode without hanging on password prompts. Uninstaller checks both system and user paths.
rafaga21 added 1 commit 2026-06-11 19:13:57 -04:00
Installer now detects at runtime if it can get root access:
- Root/NOPASSWD sudo: installs to system directories with systemd
- No root: installs to ~/.local/bin with @reboot cron job

Self-elevation uses 'script -qc sudo bash' for requiretty, or falls
back to user mode without hanging on password prompts.

Uninstaller checks both system and user paths.
rafaga21 merged commit 20e3a6926f into master 2026-06-11 19:14:59 -04:00
rafaga21 deleted branch feat/push-monitoring-agent 2026-06-11 19:15:01 -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#41