forked from mirrored-repos/manjaro-tools
[util-iso-image] fix user creation
This commit is contained in:
parent
4cd0f34c69
commit
607ebc046e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue