Merge pull request #6 from dmahlow/bash_as_default

Set bash as default shell for created users.
This commit is contained in:
Carl Mercier 2013-03-31 07:33:39 -07:00
commit f9ec8d776a

View File

@ -266,9 +266,9 @@ add_user () {
[ "$pass" == "" ] && pass=generate_password [ "$pass" == "" ] && pass=generate_password
if [[ "$args" != *nohome* ]]; then if [[ "$args" != *nohome* ]]; then
/usr/sbin/useradd --password `openssl passwd -crypt $pass` --create-home $user /usr/sbin/useradd --password `openssl passwd -crypt $pass` --create-home $user --shell /bin/bash
else else
/usr/sbin/useradd --password `openssl passwd -crypt $pass` $user /usr/sbin/useradd --password `openssl passwd -crypt $pass` $user --shell /bin/bash
fi fi
fi fi
} }