home
·
contact
·
privacy
projects
/
confplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc30775
)
Auto-run start_user.sh on account creation.
master
author
Plom Heller
<plom@plomlompom.com>
Wed, 9 Sep 2026 05:39:49 +0000
(07:39 +0200)
committer
Plom Heller
<plom@plomlompom.com>
Wed, 9 Sep 2026 05:39:49 +0000
(07:39 +0200)
setup_scripts/_lib.sh
patch
|
blob
|
history
diff --git
a/setup_scripts/_lib.sh
b/setup_scripts/_lib.sh
index b1695a4274ac8e157c1e62891a4a87fe6ef2e990..3f3172c964496359f1b63ce0c4c38e945d34d24b 100644
(file)
--- 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}"