From 257b7b906e0e9dd4414df9b67874a55eeed34e81 Mon Sep 17 00:00:00 2001 From: Plom Heller Date: Wed, 9 Sep 2026 07:39:49 +0200 Subject: [PATCH] Auto-run start_user.sh on account creation. --- setup_scripts/_lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup_scripts/_lib.sh b/setup_scripts/_lib.sh index b1695a4..3f3172c 100644 --- a/setup_scripts/_lib.sh +++ b/setup_scripts/_lib.sh @@ -234,6 +234,8 @@ start_root() { msg 'Setting up user: %s' "${USERNAME}" adduser --disabled-password --comment "" "${USERNAME}" retry_until_success passwd "${USERNAME}" + msg 'Running start_user.sh as %s …' "${USERNAME}" + su - "${USERNAME}" -c "sh ${PATH_SCRIPTS}/start_user.sh" fi usermod -a -G sudo "${USERNAME}" -- 2.30.2