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