Make the comment feature work.

This commit is contained in:
jmjl 2023-08-24 17:02:33 +00:00
parent 76db542786
commit 3a9787d402
3 changed files with 16 additions and 15 deletions

View file

@ -51,12 +51,14 @@ case $1 in
printf "sending welcome mail\n"
[ "$4" != "" ] && comment="\n$4"
{
sed -e "s/newusername/$1/g" \
-e "s/newpassword/$newpw/" \
-e "s/newtoemail/$2/" \
-e "s/<comment>/$comment/" \
/opt/tools/res/welcome-mail.tmpl \
| sendmail "$1" "$2" root@tilde.green
/opt/tools/res/welcome-mail.tmpl
printf "$comment";
cat /opt/tools/res/welcome-mail.footer.tmpl;
} | sendmail "$1" "$2" root@tilde.green
printf "adding ssh pubkey\n"
#sudo mkdir "/home/$1/.ssh"

View file

@ -0,0 +1,11 @@
--
Links:
Website: https://tilde.green
Forum: https://forum.tilde.green
Wiki: https://wiki.tilde.green
IRC: ircs://irc.teapot.chat:6697/%23tilde.green
IRC: ircs://irc.technet.chat:6697/%23tilde.green
IRC: ircs://irc.tilde.chat:6697/%23tilde.green

View file

@ -13,16 +13,4 @@ which is set to only use ssh key authentication.
We look forward to seeing you around! welcome to the ~green!
~tilde.green admins
<comment>
--
Links:
Website: https://tilde.green
Forum: https://forum.tilde.green
Wiki: https://wiki.tilde.green
IRC: ircs://irc.teapot.chat:6697/%23tilde.green
IRC: ircs://irc.technet.chat:6697/%23tilde.green
IRC: ircs://irc.tilde.chat:6697/%23tilde.green