mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
2ff2b18c74
A Proxmox host upgraded from v5 may still carry the legacy pulse-sensor-proxy footprint (binary, systemd units, runtime/state dirs, dedicated service user, and managed SSH keys in root's authorized_keys). install.sh --uninstall removed everything for the Pulse server itself but left that legacy footprint behind, so a 'complete uninstall' was not complete -- most notably it left SSH key entries in /root/.ssh/authorized_keys. uninstall_pulse now calls cleanup_local_sensor_proxy, which removes the LOCAL footprint only: stop/disable the units, remove the binary/units/runtime/state dirs, strip the '# pulse-managed-key' / '# pulse-proxy-key' entries, and remove the service user/group. It is presence-gated (silent no-op when no proxy was installed). The aggressive cluster-wide authorized_keys removal and pulse-monitor@pam API-user deletion stay behind the explicit standalone scripts/uninstall-sensor-proxy.sh, which we print a pointer to. Functional + contract tests in scripts/installtests/root_install_sh_test.go; deployment-installability contract documents the new uninstall removal scope.