forked from ungleich-public/cdist
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:
parent
1b0f560608
commit
260303dd14
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue