forked from ungleich-public/cdist
Change order of checks
per telmich's suggestion in https://github.com/telmich/cdist/pull/82/files#r1043875
This commit is contained in:
parent
2aee33fe06
commit
946d2b9d43
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,6 @@ if grep -q "^${name}:" "$__object/explorer/group"; then
|
|||
|
||||
case "$property" in
|
||||
password)
|
||||
current_value="$(awk -F: '{ print $2 }' < "$__object/explorer/gshadow")"
|
||||
if [ "$os" = "freebsd" ]; then
|
||||
echo "group/$name: FreeBSD doesn't support password modification" >&2
|
||||
exit 1
|
||||
|
@ -48,6 +47,7 @@ if grep -q "^${name}:" "$__object/explorer/group"; then
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
current_value="$(awk -F: '{ print $2 }' < "$__object/explorer/gshadow")"
|
||||
;;
|
||||
gid)
|
||||
# set to -g to support older redhat/centos
|
||||
|
|
Loading…
Reference in a new issue