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: Normalize URL to prevent double-slash in agent download. Related to #956

rcourtman0a20eed07a12
diff --git a/scripts/install.sh b/scripts/install.sh
index f4005cc10c..f89c32b285 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -227,6 +227,13 @@ while [[ $# -gt 0 ]]; do
esac
done
+# --- URL Normalization ---
+# Strip trailing slashes from PULSE_URL to prevent double-slash URLs
+# (e.g., http://host:7655//download/... which would match frontend routes)
+if [[ -n "$PULSE_URL" ]]; then
+ PULSE_URL="${PULSE_URL%/}"
+fi
+
# --- Platform Auto-Detection ---
# Only auto-detect if flags weren't explicitly set
log_info "Detecting available platforms..."