home · contact · privacy
Fixes
authorChristian Heller <c.heller@plomlompom.de>
Tue, 1 Apr 2025 07:28:02 +0000 (09:28 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 1 Apr 2025 07:28:02 +0000 (09:28 +0200)
bookworm/scripts/lib/setup_users

index cdbae8b0052351e21ff4e95730791146104a889e..98b6ab4cfb863ceaf7d52a9ae8d27018bede4cb4 100644 (file)
@@ -5,6 +5,7 @@ setup_users() {
     MIN_TAGS="$1"
     TAGS_USER="$2"
     PATH_CONF_HOME=../home
+    PATH_USER_BIN="${PATH_USER_HOME}/.local/bin"
 
     echo "\nSetting up root user's home directory."
     copy_dirtree "${PATH_CONF_HOME}" '/root' ${MIN_TAGS} root
@@ -13,7 +14,8 @@ setup_users() {
     adduser --disabled-password --gecos "" "${USERNAME}"
     usermod -a -G sudo "${USERNAME}"
     copy_dirtree "${PATH_CONF_HOME}" "${PATH_USER_HOME}" ${MIN_TAGS} ${TAGS_USER}
-    cd "${PATH_USER_HOME}/.local/bin"
+    mkdir -p "${PATH_USER_BIN}"
+    cd "${PATH_USER_BIN}"
     ln -s ../../.plomlib.sh lib
     cd -
     chown -R "${USERNAME}:${USERNAME}" "${PATH_USER_HOME}"