mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add Administrator to user adding
This commit is contained in:
parent
a85f6f30d7
commit
fe0a74e841
1 changed files with 6 additions and 1 deletions
|
@ -174,7 +174,12 @@ _user_management() {
|
|||
else
|
||||
_set_comment || break
|
||||
_prepare_password User || break
|
||||
if useradd -R "${_DESTDIR}" -c "${_FN}" -m "${_USER}" &>"${_LOG}"; then
|
||||
if _dialog --defaultno --yesno "Set ${_USER} as Administrator and part of wheel group?" 3 60; then
|
||||
_USER_FLAG="-aG wheel"
|
||||
else
|
||||
_USER_FLAG=""
|
||||
fi
|
||||
if useradd -R "${_DESTDIR}" -c "${_FN}" "${_USER_FLAG}" -m "${_USER}" &>"${_LOG}"; then
|
||||
_set_password
|
||||
_dialog --title " Success " --no-mouse --infobox "User Account ${_USER} created succesfully." 3 60
|
||||
sleep 2
|
||||
|
|
Loading…
Reference in a new issue