Fix initial login setup script to ensure SENTINEL is created before running the setup script

This commit is contained in:
Philip Henning 2026-02-09 11:00:21 +01:00
parent f6785b69ac
commit 8ccdc0c2e6

View file

@ -20,7 +20,6 @@ fi
SENTINEL="/var/lib/initial-login-setup.done"
if [ ! -f "$SENTINEL" ] && [ -x /usr/local/bin/initial-setup.sh ]; then
#DEBUG touch SENTINEL before running the setup script to prevent infinite loops during development
sudo /usr/local/bin/initial-setup.sh
sudo touch "$SENTINEL"
sudo /usr/local/bin/initial-setup.sh
fi