users: Use deluser instead userdel for deleting POSIX users

This commit is contained in:
Sunil Mohan Adapa 2015-01-25 01:44:35 +05:30
parent c2b806cf0d
commit 2b85416aa2

View File

@ -26,7 +26,7 @@ if [ $? -ne 0 ]; then
exit
fi
userdel "$username"
deluser "$username"
if [ $? -eq 0 ]; then
echo "Success: user deleted"
else