From 7d304b4a9743b764bc3b5b2e40f9c7eee1a96e1f Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 9 Dec 2023 12:03:28 +0100 Subject: [PATCH] add_new_user.sh: set default base home dir to '/home/' if DHOME is not set. --- add_new_user.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/add_new_user.sh b/add_new_user.sh index b7c11c6..9e2b788 100755 --- a/add_new_user.sh +++ b/add_new_user.sh @@ -119,7 +119,11 @@ fi if [[ -f "/etc/adduser.conf" ]]; then . /etc/adduser.conf - home_base_dir="$DHOME" + if [[ -z "$DHOME" ]] ; then + home_base_dir=/home + else + home_base_dir="$DHOME" + fi min_uid=$FIRST_UID skel_dir="$SKEL" else