Fix gpasswd call in __user_groups: order incorrect

From the manpage:

       -a, --add user
           Add the user to the named group.

       -d, --delete user
           Remove the user from the named group.
This commit is contained in:
Nico Schottelius 2017-08-03 15:11:35 +02:00
parent 1b0f560608
commit 260303dd14

View file

@ -59,8 +59,8 @@ for group in $changed_groups; do
esac
else
case "$state_should" in
present) echo "gpasswd -a \"$group\" \"$user\"" ;;
absent) echo "gpasswd -d \"$group\" \"$user\"" ;;
present) echo "gpasswd -a \"$user\" \"$group\"" ;;
absent) echo "gpasswd -d \"$user\" \"$group\"" ;;
esac
fi
done