Skip to content

Commit

Permalink
Add sync also to default password
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Nov 6, 2023
1 parent 37b8a7b commit ca24304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/fullpageos/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ then
fi
else
sudo -u pi /home/pi/scripts/setX11vncPass raspberry
sync
if [ ! -f /home/pi/.vnc/passwd ] || [ ! -s /home/pi/.vnc/passwd ]; then
echo "/home/pi/.vnc/passwd was not created. Trying again."
sudo -u pi /home/pi/scripts/setX11vncPass raspberry
sync
if [ ! -f /home/pi/.vnc/passwd ] || [ ! -s /home/pi/.vnc/passwd ]; then
echo "/home/pi/.vnc/passwd was not created again. Giving up."
echo "Failed to set a VNC password. Aborting build."
Expand Down

0 comments on commit ca24304

Please sign in to comment.