From 0c6e988fc02af2d19f11bc0c3d61a95b4105087d Mon Sep 17 00:00:00 2001 From: Guy Sheffer Date: Mon, 6 Nov 2023 22:59:55 +0200 Subject: [PATCH] Fix for all users --- .../fullpageos/filesystem/home/pi/scripts/setX11vncPass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass b/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass index 52a4f60..b599564 100755 --- a/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass +++ b/src/modules/fullpageos/filesystem/home/pi/scripts/setX11vncPass @@ -1,5 +1,4 @@ #!/usr/bin/env bash # fix for when runnign in sudo -mkdir -p /home/pi/.vnc -chown pi:pi /home/pi/.vnc +bash -c 'mkdir -p ~/.vnc' bash -c 'x11vnc -storepasswd "'${1}'" ~/.vnc/passwd'