forked from ungleich-public/cdist
Merge pull request #563 from uqam-fob/user-groups-openbsd
__user_groups: Support OpenBSD
This commit is contained in:
commit
4f91b402f4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue