[util-iso-image] fix user creation

This commit is contained in:
udeved 2016-01-21 16:40:37 +01:00
parent 4cd0f34c69
commit 607ebc046e

View file

@ -63,9 +63,9 @@ configure_user(){
# set up user and password
msg2 "Creating user: ${username} password: ${password} ..."
if [[ -n ${password} ]];then
chroot $1 useradd -m -g ${username} -G ${addgroups} -p $(gen_pw) ${username}
chroot $1 useradd -m -G ${addgroups} -p $(gen_pw) ${username}
else
chroot $1 useradd -m -g ${username} -G ${addgroups} ${username}
chroot $1 useradd -m -G ${addgroups} ${username}
fi
}