forked from team/makeuser
Update include/functions
This commit is contained in:
parent
5ec8a4c9bb
commit
9bd4030bd9
|
@ -25,7 +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
|
||||||
|
|
||||||
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