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: Remove hardcoded sudo from agent install commands
rcourtman946e47542dfb
diff --git a/frontend-modern/src/components/Settings/UnifiedAgents.tsx b/frontend-modern/src/components/Settings/UnifiedAgents.tsxindex 8934c1b6a6..0768f3c600 100644--- a/frontend-modern/src/components/Settings/UnifiedAgents.tsx+++ b/frontend-modern/src/components/Settings/UnifiedAgents.tsx@@ -41,10 +41,10 @@ const buildCommandsByPlatform = (url: string): Record<snippets: [{label: 'Install',- command: `curl -fsSL ${url}/install.sh | sudo bash -s -- --url ${url} --token ${TOKEN_PLACEHOLDER} --interval 30s`,+ command: `curl -fsSL ${url}/install.sh | bash -s -- --url ${url} --token ${TOKEN_PLACEHOLDER} --interval 30s`,note: (<span>- Automatically detects your init system (systemd, OpenRC, Unraid, Synology) and configures the appropriate service. Works on Debian, Ubuntu, Fedora, Alpine, Gentoo, Unraid, Synology, and more.+ Run as root (use <code>sudo</code> or <code>su -</code> if not already root). Auto-detects your init system and works on Debian, Ubuntu, Proxmox, Fedora, Alpine, Unraid, Synology, and more.</span>),},@@ -57,10 +57,10 @@ const buildCommandsByPlatform = (url: string): Record<snippets: [{label: 'Install with launchd',- command: `curl -fsSL ${url}/install.sh | sudo bash -s -- --url ${url} --token ${TOKEN_PLACEHOLDER} --interval 30s`,+ command: `curl -fsSL ${url}/install.sh | bash -s -- --url ${url} --token ${TOKEN_PLACEHOLDER} --interval 30s`,note: (<span>- Creates <code>/Library/LaunchDaemons/com.pulse.agent.plist</code> and starts the agent automatically.+ Run as root (use <code>sudo</code> if not already root). Creates <code>/Library/LaunchDaemons/com.pulse.agent.plist</code> and starts the agent automatically.</span>),},@@ -247,7 +247,7 @@ export const UnifiedAgents: Component = () => {const getUninstallCommand = () => {const url = customAgentUrl() || agentUrl();- return `curl ${getCurlInsecureFlag()}-fsSL ${url}/install.sh | sudo bash -s -- --uninstall`;+ return `curl ${getCurlInsecureFlag()}-fsSL ${url}/install.sh | bash -s -- --uninstall`;};// Track previously seen host types to prevent flapping when one source temporarily has no data@@ -384,7 +384,7 @@ export const UnifiedAgents: Component = () => {const getUpgradeCommand = (_hostname: string) => {const token = resolvedToken();const url = customAgentUrl() || agentUrl();- return `curl ${getCurlInsecureFlag()}-fsSL ${url}/install.sh | sudo bash -s -- --url ${url} --token ${token}${getInsecureFlag()}`;+ return `curl ${getCurlInsecureFlag()}-fsSL ${url}/install.sh | bash -s -- --url ${url} --token ${token}${getInsecureFlag()}`;};const handleRemoveAgent = async (id: string, types: ('host' | 'docker')[]) => {diff --git a/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx b/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsxindex 000a62b1b2..f7a5d47258 100644--- a/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx+++ b/frontend-modern/src/components/SetupWizard/steps/CompleteStep.tsx@@ -198,7 +198,8 @@ Keep these credentials secure!const getInstallCommand = () => {const baseUrl = getPulseBaseUrl();// Simple command - the install script auto-detects Docker, Kubernetes, and Proxmox- return `curl -sSL ${baseUrl}/install.sh | sudo bash -s -- --url "${baseUrl}" --token "${currentInstallToken()}"`;+ // Note: sudo removed - users should run as root (via su or sudo) since some systems (like Proxmox) don't have sudo installed+ return `curl -sSL ${baseUrl}/install.sh | bash -s -- --url "${baseUrl}" --token "${currentInstallToken()}"`;};return (