Merge pull request #496 from AnotherKamila/master

__user type: fix for FreeBSD
This commit is contained in:
Darko Poljak 2016-11-25 20:31:26 +01:00 committed by GitHub
commit 1cc01bf598

View file

@ -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