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: correct fmt.Sprintf argument alignment in PVE setup script

rcourtmand430efcecb5e
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go
index 0d48535ada..d409dac568 100644
--- a/internal/api/config_handlers.go
+++ b/internal/api/config_handlers.go
@@ -4343,11 +4343,13 @@ if [ "$AUTO_REG_SUCCESS" != true ]; then
echo " Token Value: [See token output above]"
fi
echo " Host URL: YOUR_PROXMOX_HOST:8006"
- echo ""
+echo ""
fi
`, serverName, time.Now().Format("2006-01-02 15:04:05"), pulseIP,
tokenName, tokenName, tokenName, tokenName, tokenName, tokenName,
- authToken, pulseURL, serverHost, tokenName, tokenName, storagePerms, sshKeys.ProxyPublicKey, sshKeys.SensorsPublicKey, minProxyReadyVersion, pulseURL, pulseURL, pulseURL, pulseURL, pulseURL, pulseURL, authToken, pulseURL, authToken, pulseURL, tokenName)
+ authToken, pulseURL, serverHost, tokenName, tokenName, storagePerms,
+ sshKeys.ProxyPublicKey, sshKeys.SensorsPublicKey, minProxyReadyVersion,
+ pulseURL, "%s", "%s", pulseURL, pulseURL, pulseURL, pulseURL, pulseURL, pulseURL, authToken, pulseURL, authToken, pulseURL, tokenName)
} else { // PBS
script = fmt.Sprintf(`#!/bin/bash