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: improve sensor proxy install script reliability

rcourtman5886b920bac9
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go
index 9131eb8f5b..a1ec8c06b7 100644
--- a/internal/api/config_handlers.go
+++ b/internal/api/config_handlers.go
@@ -3732,10 +3732,6 @@ if [ "$PULSE_IS_CONTAINERIZED" = true ] && [ -n "$PULSE_CTID" ]; then
echo "$INSTALL_OUTPUT" | grep -E "✓|⚠️|ERROR" || true
fi
- if [ -n "$INSTALL_OUTPUT" ]; then
- echo "$INSTALL_OUTPUT" | grep -E "✓|⚠️|ERROR" || true
- fi
-
if [ $INSTALL_STATUS -eq 0 ]; then
# Verify proxy health
PROXY_HEALTHY=false
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.sh
index 8716d65919..ed8cb04de1 100755
--- a/scripts/install-sensor-proxy.sh
+++ b/scripts/install-sensor-proxy.sh
@@ -351,9 +351,13 @@ if command -v pvecm >/dev/null 2>&1; then
print_info "Authorizing proxy key on node $node_ip..."
IS_LOCAL=false
- if [[ " $LOCAL_IPS " == *" $node_ip "* ]]; then
- IS_LOCAL=true
- fi
+ # Check if node_ip matches any of the local IPs (exact match with word boundaries)
+ for local_ip in $LOCAL_IPS; do
+ if [[ "$node_ip" == "$local_ip" ]]; then
+ IS_LOCAL=true
+ break
+ fi
+ done
if [[ " $LOCAL_HOSTNAMES " == *" $node_ip "* ]]; then
IS_LOCAL=true
fi