add_new_user.sh: set default base home dir to '/home/' if DHOME is not set.

This commit is contained in:
Christoph 2023-12-09 12:03:28 +01:00
parent a80f530438
commit 7d304b4a97

View File

@ -119,7 +119,11 @@ fi
if [[ -f "/etc/adduser.conf" ]]; then if [[ -f "/etc/adduser.conf" ]]; then
. /etc/adduser.conf . /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 min_uid=$FIRST_UID
skel_dir="$SKEL" skel_dir="$SKEL"
else else