From 3dc6aceb7bc2054993af0c56e70cf6f253ac01cb Mon Sep 17 00:00:00 2001 From: deepend Date: Fri, 27 Mar 2020 00:12:33 -0600 Subject: [PATCH] added toot announcement. --- makeuser | 9 +++++++-- welcome-email.tmpl | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/makeuser b/makeuser index c594f01..c5aee23 100755 --- a/makeuser +++ b/makeuser @@ -37,7 +37,7 @@ case $1 in echo "adding new user $1" newpw=$(pwgen -1B 10) - sudo useradd -m -g 100 -s /bin/bash $1 \ + sudo useradd -m -g 100 -s /usr/bin/bash $1 \ || error_exit "couldn't add user" echo "$1:$newpw" | sudo chpasswd sudo chage -d 0 $1 @@ -55,5 +55,10 @@ case $1 in echo "adding ssh pubkey" echo "$3" | sudo tee /home/$1/.ssh/authorized_keys -esac + echo "announcing new user on mastodon" + toot "welcome new user ~$1!" + + + +esac diff --git a/welcome-email.tmpl b/welcome-email.tmpl index 2a13f3e..6ed780c 100644 --- a/welcome-email.tmpl +++ b/welcome-email.tmpl @@ -29,6 +29,9 @@ run the `chat` command at your shell to start up weechat (a terminal-based irc client) auto-connected and joined to #club. see the https://tilde.chat site for information on how to connect externally if you prefer that instead. +Keep up on things we are doing by following us on Mastodon at +https://tilde.club/@tildeclub/ + we look forward to seeing you around! welcome to the ~club! your tilde.club admins,