add_new_user.sh: set default base home dir to '/home/' if DHOME is not set.
This commit is contained in:
parent
a80f530438
commit
7d304b4a97
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user