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

1 Commits

Author SHA1 Message Date
fd3cc6825c fix: dual-mode installer — works with or without sudo
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.
2026-06-11 19:12:57 -04:00