Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(install): clear all Proxmox state files on reinstall. Related to #925

rcourtmane0b6c12736eb
diff --git a/scripts/install.sh b/scripts/install.sh
index 4c1d162faf..177931f845 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -658,11 +658,13 @@ fi
# --- Service Installation ---
-# If Proxmox mode is enabled, clear the state file to ensure fresh registration
-# This allows re-installation to re-create the Proxmox API token
+# If Proxmox mode is enabled, clear the state files to ensure fresh registration
+# This allows re-installation to re-create the Proxmox API tokens
if [[ "$ENABLE_PROXMOX" == "true" ]]; then
log_info "Clearing Proxmox state for fresh registration..."
rm -f /var/lib/pulse-agent/proxmox-registered 2>/dev/null || true
+ rm -f /var/lib/pulse-agent/proxmox-pve-registered 2>/dev/null || true
+ rm -f /var/lib/pulse-agent/proxmox-pbs-registered 2>/dev/null || true
fi
# 1. macOS (Launchd)