Merge pull request #407 from jakllsch/netbsd-group

don't use the non-existant gshadow database on NetBSD either
remotes/origin/4.0
Nico Schottelius 10 years ago
commit b9280f1ea7
  1. 10
      cdist/conf/type/__group/explorer/gshadow

@ -24,9 +24,11 @@
name=$__object_id
os="$($__explorer/os)"
if [ "$os" = "freebsd" ]; then
echo "FreeBSD does not have getent gshadow"
exit 0
fi
case "$os" in
"freebsd"|"netbsd")
echo "$os does not have getent gshadow"
exit 0
;;
esac
getent gshadow "$name" || true

Loading…
Cancel
Save