Create home dir for adduser function

This commit is contained in:
Mike Reeves
2020-07-17 10:55:30 -04:00
parent 083e43b26b
commit 17e3bde2f8

View File

@@ -79,7 +79,7 @@ so_add_user() {
echo "Add $username user" >> "$setup_log" 2>&1
groupadd --gid "$gid" "$username"
useradd --uid "$uid" --gid "$gid" --home-dir "$home_dir" "$username"
useradd -m --uid "$uid" --gid "$gid" --home-dir "$home_dir" "$username"
# If a password has been passed in, set the password
if [ "$pass" ]; then