Fix script-user-add
This commit is contained in:
@@ -14,6 +14,11 @@ echo "$@"
|
||||
|
||||
useradd_cmd=("useradd" "-m" "-U")
|
||||
|
||||
if id -u "$username"; then
|
||||
ask_ok "User $username exists. Run script-user-remove?" || exit $?
|
||||
script-user-remove "$username"
|
||||
fi
|
||||
|
||||
ask_ok "Create user $username with password $password?" || exit $?
|
||||
|
||||
restore="no"
|
||||
|
||||
Reference in New Issue
Block a user