forked from ungleich-public/cdist
Merge pull request #496 from AnotherKamila/master
__user type: fix for FreeBSD
This commit is contained in:
commit
1cc01bf598
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ if [ "$state" = "present" ]; then
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
echo mod >> "$__messages_out"
|
echo mod >> "$__messages_out"
|
||||||
if [ "$os" = "freebsd" ]; then
|
if [ "$os" = "freebsd" ]; then
|
||||||
echo pw usermod "$@" "$name"
|
echo pw usermod "$@" -n "$name"
|
||||||
else
|
else
|
||||||
echo usermod "$@" "$name"
|
echo usermod "$@" "$name"
|
||||||
fi
|
fi
|
||||||
|
@ -125,7 +125,7 @@ if [ "$state" = "present" ]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$os" = "freebsd" ]; then
|
if [ "$os" = "freebsd" ]; then
|
||||||
echo pw useradd "$@" "$name"
|
echo pw useradd "$@" -n "$name"
|
||||||
else
|
else
|
||||||
echo useradd "$@" "$name"
|
echo useradd "$@" "$name"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue