From d0f7fd64045b732d5c89cff34555470b64ac3d7a Mon Sep 17 00:00:00 2001 From: rcourtman Date: Fri, 17 Oct 2025 14:25:30 +0000 Subject: [PATCH] fix: setup script now configures proxy socket bind mount The setup script was restarting the container but never running the pct set command to configure the bind mount. This meant the socket was never accessible inside the container. Now runs: pct set -mp0 /run/pulse-sensor-proxy,mp=/mnt/pulse-proxy before restarting the container to ensure the mount is configured. --- internal/api/config_handlers.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go index 9271de5..48f34a3 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