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 now configures proxy socket bind mount

rcourtmand0f7fd64045b
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go
index 9271de5f22..48f34a3f91 100644
--- a/internal/api/config_handlers.go
+++ b/internal/api/config_handlers.go
@@ -3707,6 +3707,11 @@ if [ "$PULSE_IS_CONTAINERIZED" = true ] && [ -n "$PULSE_CTID" ]; then
echo ""
if [[ $RESTART_CONTAINER =~ ^[Yy]$|^$ ]]; then
+ echo "Configuring socket bind mount for container $PULSE_CTID..."
+
+ # Configure bind mount for proxy socket
+ pct set "$PULSE_CTID" -mp0 /run/pulse-sensor-proxy,mp=/mnt/pulse-proxy
+
echo "Restarting container $PULSE_CTID..."
# Set up trap to restart container even if script is interrupted
@@ -3722,8 +3727,9 @@ if [ "$PULSE_IS_CONTAINERIZED" = true ] && [ -n "$PULSE_CTID" ]; then
echo " ✓ Container restarted successfully"
echo ""
else
- echo "⚠️ Remember to restart container $PULSE_CTID manually:"
- echo " pct restart $PULSE_CTID"
+ echo "⚠️ Remember to configure the bind mount and restart container $PULSE_CTID manually:"
+ echo " pct set $PULSE_CTID -mp0 /run/pulse-sensor-proxy,mp=/mnt/pulse-proxy"
+ echo " pct stop $PULSE_CTID && sleep 2 && pct start $PULSE_CTID"
echo ""
fi
else