forked from team/makeuser
Update 'include/functions'
This commit is contained in:
parent
c8d74e219b
commit
3bf8601281
|
@ -19,7 +19,7 @@ makeuser_no_ansible()
|
||||||
echo "adding new user $1"
|
echo "adding new user $1"
|
||||||
newpw=`pwgen -1B 10`
|
newpw=`pwgen -1B 10`
|
||||||
pwcrypt=$(perl -e "print crypt('${newpw}', 'sa');")
|
pwcrypt=$(perl -e "print crypt('${newpw}', 'sa');")
|
||||||
sudo useradd -m -g 1000 -p $pwcrypt -s /bin/bash $1 || exit 1
|
sudo useradd -m -g 1001 -p $pwcrypt -s /bin/bash $1 || exit 1
|
||||||
#This is the welcome for team.
|
#This is the welcome for team.
|
||||||
#sed -e "s/newusername/$1/g" -e "s/newpassword/$newpw/" $EMAIL_TEMPLATE | sudo mail $1 $2 $ADMIN_EMAIL
|
#sed -e "s/newusername/$1/g" -e "s/newpassword/$newpw/" $EMAIL_TEMPLATE | sudo mail $1 $2 $ADMIN_EMAIL
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue