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