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: Setup script UX and auth issues for rc.2

rcourtmanb931e1e1263e
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go
index 98b8e84774..0168a0f686 100644
--- a/internal/api/config_handlers.go
+++ b/internal/api/config_handlers.go
@@ -3003,11 +3003,11 @@ fi
echo ""
echo "What would you like to do?"
echo ""
-echo " [I] Install/Configure - Set up Pulse monitoring"
-echo " [R] Remove All - Uninstall everything Pulse has configured"
-echo " [C] Cancel - Exit without changes"
+echo " [1] Install/Configure - Set up Pulse monitoring"
+echo " [2] Remove All - Uninstall everything Pulse has configured"
+echo " [3] Cancel - Exit without changes"
echo ""
-echo -n "Your choice [I/r/c]: "
+echo -n "Your choice [1/2/3]: "
MAIN_ACTION=""
if [ -t 0 ]; then
@@ -3017,20 +3017,20 @@ else
:
else
echo "(No terminal available - defaulting to Install)"
- MAIN_ACTION="I"
+ MAIN_ACTION="1"
fi
fi
echo ""
echo ""
# Handle Cancel
-if [[ $MAIN_ACTION =~ ^[Cc]$ ]]; then
+if [[ $MAIN_ACTION =~ ^[3Cc]$ ]]; then
echo "Cancelled. No changes made."
exit 0
fi
# Handle Remove All
-if [[ $MAIN_ACTION =~ ^[Rr]$ ]]; then
+if [[ $MAIN_ACTION =~ ^[2Rr]$ ]]; then
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "🗑️ Complete Removal"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
diff --git a/internal/api/router.go b/internal/api/router.go
index 57b68571ba..1540a7dade 100644
--- a/internal/api/router.go
+++ b/internal/api/router.go
@@ -836,7 +836,7 @@ func (r *Router) setupRoutes() {
r.systemSettingsHandler = NewSystemSettingsHandler(r.config, r.persistence, r.wsHub, r.monitor, r.reloadSystemSettings)
r.mux.HandleFunc("/api/system/settings", r.systemSettingsHandler.HandleGetSystemSettings)
r.mux.HandleFunc("/api/system/settings/update", r.systemSettingsHandler.HandleUpdateSystemSettings)
- r.mux.HandleFunc("/api/system/verify-temperature-ssh", r.configHandlers.HandleVerifyTemperatureSSH)
+ r.mux.HandleFunc("/api/system/verify-temperature-ssh", RequireAuth(r.config, r.configHandlers.HandleVerifyTemperatureSSH))
// Old API token endpoints removed - now using /api/security/regenerate-token
// Docker agent download endpoints