From b7732b937e0fe399bfebf1f5993d5feeb0d36880 Mon Sep 17 00:00:00 2001 From: Philippe Delodder Date: Fri, 12 Jul 2024 12:39:41 +0000 Subject: [PATCH] Small fix --- docker/root/start.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/root/start.sh b/docker/root/start.sh index 868e585..9edb725 100755 --- a/docker/root/start.sh +++ b/docker/root/start.sh @@ -26,7 +26,7 @@ DECONZ_OPTS="--auto-connect=1 \ --ws-port=$DECONZ_WS_PORT" if [ "$NON_ROOT" = 0 ]; then - GOSU="gosu" + GOSU="gosu deconz" else GOSU="" fi @@ -120,8 +120,8 @@ if [ "$DECONZ_VNC_MODE" != 0 ]; then fi # Cleanup previous VNC session data - $GOSU deconz tigervncserver -kill ':*' - $GOSU deconz tigervncserver -list ':*' -cleanstale + $GOSU tigervncserver -kill ':*' + $GOSU tigervncserver -list ':*' -cleanstale for lock in "/tmp/.X${DECONZ_VNC_DISPLAY#:}-lock" "/tmp/.X11-unix/X${DECONZ_VNC_DISPLAY#:}"; do [ -e "$lock" ] || continue echo "[deconzcommunity/deconz] WARN - VNC-lock found. Deleting: $lock" @@ -129,7 +129,7 @@ if [ "$DECONZ_VNC_MODE" != 0 ]; then done # Set VNC security - $GOSU deconz tigervncserver -SecurityTypes "$SECURITYTYPES" "$DECONZ_VNC_DISPLAY" + $GOSU tigervncserver -SecurityTypes "$SECURITYTYPES" "$DECONZ_VNC_DISPLAY" # Export VNC display variable export DISPLAY=$DECONZ_VNC_DISPLAY @@ -158,7 +158,7 @@ if [ "$DECONZ_VNC_MODE" != 0 ]; then chown deconz:deconz $NOVNC_CERT #Start noVNC - $GOSU deconz websockify -D --web=/usr/share/novnc/ --cert="$NOVNC_CERT" $DECONZ_NOVNC_PORT localhost:$DECONZ_VNC_PORT + $GOSU websockify -D --web=/usr/share/novnc/ --cert="$NOVNC_CERT" $DECONZ_NOVNC_PORT localhost:$DECONZ_VNC_PORT echo "[deconzcommunity/deconz] NOVNC port: $DECONZ_NOVNC_PORT" fi @@ -180,4 +180,4 @@ ln -sfT $DECONZ_APPDATA_DIR/otau /home/deconz/otau chown deconz:deconz /home/deconz/otau chown deconz:deconz $DECONZ_APPDATA_DIR -R -exec $GOSU deconz /usr/bin/deCONZ $DECONZ_OPTS +exec $GOSU /usr/bin/deCONZ $DECONZ_OPTS