mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
users: Use deluser instead userdel for deleting POSIX users
This commit is contained in:
parent
c2b806cf0d
commit
2b85416aa2
@ -26,7 +26,7 @@ if [ $? -ne 0 ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
userdel "$username"
|
deluser "$username"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Success: user deleted"
|
echo "Success: user deleted"
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user