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: automatically restart container when proxy mount is configured

rcourtman171723a7d3a4
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.sh
index a59e814b6f..3bd2ec7428 100755
--- a/scripts/install-sensor-proxy.sh
+++ b/scripts/install-sensor-proxy.sh
@@ -801,15 +801,13 @@ fi
# Restart container to apply mount if configuration changed or mount missing
if [[ "$MOUNT_UPDATED" = true ]]; then
+ print_info "Restarting container to apply socket mount..."
if [[ "$CT_RUNNING" = true ]]; then
- print_warn "Container $CTID is currently running. Restart it when convenient to activate the secure proxy mount."
+ pct restart "$CTID"
else
- print_info "Restarting container to apply socket mount..."
- pct stop "$CTID" || true
- sleep 2
pct start "$CTID"
- sleep 5
fi
+ sleep 5
fi
# Verify socket directory and file inside container