Pulse/scripts
rcourtman f9cb96ceb8 feat: add --uninstall support to Docker agent and sensor proxy scripts
Users can now cleanly uninstall components with optional data removal.

Docker Agent (install-docker-agent.sh):
- --uninstall: Remove service, binary, systemd unit, Unraid startup hook
- --purge: Also remove log files (optional, must be used with --uninstall)
- Stops/disables service even if unit file is missing (resilient cleanup)
- Validates --purge requires --uninstall

Sensor Proxy (install-sensor-proxy.sh):
- --uninstall: Remove service, binary, cleanup scripts, socket directory
- Calls existing cleanup helper to remove SSH keys from cluster nodes
- Manual fallback if cleanup helper is missing
- --purge: Also remove state/logs and service account
- Validates --purge requires --uninstall

Usage:
  # Uninstall Docker agent (keep logs)
  curl ... | bash -s -- --uninstall

  # Uninstall Docker agent (remove everything)
  curl ... | bash -s -- --uninstall --purge

  # Uninstall sensor proxy (keep state/logs)
  curl ... | bash -s -- --uninstall

  # Uninstall sensor proxy (remove everything)
  curl ... | bash -s -- --uninstall --purge

Changes:
- scripts/install-docker-agent.sh: Add --purge flag, improve uninstall flow
- scripts/install-sensor-proxy.sh: Add perform_uninstall() function
- Both: Non-interactive, idempotent, resilient cleanup

Next: Update UI to show uninstall commands when removing hosts/nodes

Co-authored-by: Codex AI
2025-10-21 10:21:48 +00:00
..
dev Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
lib feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
systemd feat: add automatic SSH key cleanup when nodes are removed 2025-10-18 07:03:05 +00:00
tests feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
.go-version Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
build-release.sh Add Helm chart tooling, CI, and release packaging 2025-10-18 11:50:57 +00:00
bundle.manifest feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
bundle.sh feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
clean-mock-alerts.sh Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
create-sensor-user.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
dev-hot.sh Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
docker-build.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
harden-sensor-proxy.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
hot-dev.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
install-docker-agent-v2.sh feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
install-docker-agent.sh feat: add --uninstall support to Docker agent and sensor proxy scripts 2025-10-21 10:21:48 +00:00
install-docker.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
install-go-toolchain.sh Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
install-sensor-proxy.sh feat: add --uninstall support to Docker agent and sensor proxy scripts 2025-10-21 10:21:48 +00:00
package-helm-chart.sh Add Helm chart tooling, CI, and release packaging 2025-10-18 11:50:57 +00:00
pulse-auto-update.sh feat: improve source build installation experience 2025-10-21 08:57:29 +00:00
pulse-proxy-rotate-keys.sh refactor: Rename pulse-temp-proxy to pulse-sensor-proxy 2025-10-13 13:17:05 +00:00
pulse-sensor-cleanup.sh fix: gracefully handle standalone node cleanup limitation 2025-10-18 07:34:18 +00:00
pulse-sensor-proxy.service refactor: Rename pulse-temp-proxy to pulse-sensor-proxy 2025-10-13 13:17:05 +00:00
run-tests-mock.sh Adopt multi-token auth across docs, UI, and tooling 2025-10-14 15:47:49 +00:00
secure-sensor-files.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
setup-log-forwarding.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
sync-production-config.sh Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
take-all-screenshots.js Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
take-screenshots.js Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
test-vm-disk.sh Update Proxmox guest agent permissions docs and tooling (refs #548) 2025-10-14 10:21:52 +00:00
toggle-mock-pure.sh Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
toggle-mock.sh feat: capture Proxmox memory snapshots in diagnostics 2025-10-12 10:25:43 +00:00