forked from team/makeuser
Update include/functions
This commit is contained in:
parent
b941b76b27
commit
5ec8a4c9bb
|
@ -25,8 +25,7 @@ makeuser_no_ansible()
|
||||||
sed -e "s/newusername/$1/g" -e "s/newpassword/$newpw/g" include/email.tmpl | sudo mail -s "Welcome to Thunix!" $2,$ADMIN_EMAIL
|
sed -e "s/newusername/$1/g" -e "s/newpassword/$newpw/g" include/email.tmpl | sudo mail -s "Welcome to Thunix!" $2,$ADMIN_EMAIL
|
||||||
sub_to_list $1
|
sub_to_list $1
|
||||||
|
|
||||||
#We don't need this for thunix, since ansible will do it
|
echo $3 | sudo tee /home/$1/.ssh/authorized_keys
|
||||||
echo "$3" | sudo tee /home/$1/.ssh/authorized_keys
|
|
||||||
|
|
||||||
#If root doesn't have a fediverse account, comment this out
|
#If root doesn't have a fediverse account, comment this out
|
||||||
#sudo toot "welcome new user ~$1!"
|
#sudo toot "welcome new user ~$1!"
|
||||||
|
|
Loading…
Reference in New Issue