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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: avoid shell syntax error in uninstall command when no token is set
rcourtmane31b12a82ba8
diff --git a/frontend-modern/src/components/Settings/UnifiedAgents.tsx b/frontend-modern/src/components/Settings/UnifiedAgents.tsxindex ad3aa36e94..fc5f126ad0 100644--- a/frontend-modern/src/components/Settings/UnifiedAgents.tsx+++ b/frontend-modern/src/components/Settings/UnifiedAgents.tsx@@ -320,9 +320,14 @@ export const UnifiedAgents: Component = () => {const getUninstallCommand = () => {const url = customAgentUrl() || agentUrl();- const token = currentToken() || latestRecord()?.id || TOKEN_PLACEHOLDER;+ const token = currentToken() || latestRecord()?.id;const insecure = insecureMode() ? ' --insecure' : '';- return `curl ${getCurlInsecureFlag()}-fsSL ${url}/install.sh | bash -s -- --uninstall --url ${url} --token ${token}${insecure}`;+ // Only include token if we have a real one - the uninstall script works without it+ // Avoid including <api-token> placeholder which causes shell syntax errors+ if (token) {+ return `curl ${getCurlInsecureFlag()}-fsSL ${url}/install.sh | bash -s -- --uninstall --url ${url} --token ${token}${insecure}`;+ }+ return `curl ${getCurlInsecureFlag()}-fsSL ${url}/install.sh | bash -s -- --uninstall --url ${url}${insecure}`;};// Track previously seen host types to prevent flapping when one source temporarily has no data