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