Users : Call grpck after edit

This commit is contained in:
MatMoul 2015-10-13 21:59:09 +02:00
parent fa143b9b0e
commit d7143c47c6

View file

@ -31,6 +31,7 @@ case $sel in
echo "Choose a password for $username :" echo "Choose a password for $username :"
echo "" echo ""
passwd $username passwd $username
grpck
pressanykey pressanykey
fi fi
;; ;;
@ -38,6 +39,7 @@ case $sel in
username=$(whiptail --backtitle "$apptitle" --title "Delete User" --inputbox "Enter the user name to delete :" 0 0 3>&1 1>&2 2>&3) username=$(whiptail --backtitle "$apptitle" --title "Delete User" --inputbox "Enter the user name to delete :" 0 0 3>&1 1>&2 2>&3)
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
userdel -r -f $username userdel -r -f $username
grpck
fi fi
;; ;;
esac esac