Merge pull request #563 from uqam-fob/user-groups-openbsd

__user_groups: Support OpenBSD
This commit is contained in:
Darko Poljak 2017-08-27 15:24:02 +02:00 committed by GitHub
commit 4f91b402f4

View file

@ -42,10 +42,10 @@ if [ -z "$changed_groups" ]; then
fi
for group in $changed_groups; do
if [ "$os" = "netbsd" ]; then
if [ "$os" = "netbsd" ] || [ "$os" = "openbsd" ]; then
case "$state_should" in
present) echo "usermod -G \"$group\" \"$user\"" ;;
absent) echo 'NetBSD does not have a command to remove a user from a group' >&2 ; exit 1 ;;
absent) echo 'NetBSD and OpenBSD do not have a command to remove a user from a group' >&2 ; exit 1 ;;
esac
elif [ "$os" = "freebsd" ]; then
case "$state_should" in