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

__user_groups: Support OpenBSD
remotes/origin/4.6
Darko Poljak 7 years ago committed by GitHub
commit 4f91b402f4
  1. 4
      cdist/conf/type/__user_groups/gencode-remote

@ -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…
Cancel
Save