added toot announcement.
This commit is contained in:
parent
fce89b4417
commit
3dc6aceb7b
9
makeuser
9
makeuser
|
@ -37,7 +37,7 @@ case $1 in
|
||||||
|
|
||||||
echo "adding new user $1"
|
echo "adding new user $1"
|
||||||
newpw=$(pwgen -1B 10)
|
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"
|
|| error_exit "couldn't add user"
|
||||||
echo "$1:$newpw" | sudo chpasswd
|
echo "$1:$newpw" | sudo chpasswd
|
||||||
sudo chage -d 0 $1
|
sudo chage -d 0 $1
|
||||||
|
@ -55,5 +55,10 @@ case $1 in
|
||||||
echo "adding ssh pubkey"
|
echo "adding ssh pubkey"
|
||||||
echo "$3" | sudo tee /home/$1/.ssh/authorized_keys
|
echo "$3" | sudo tee /home/$1/.ssh/authorized_keys
|
||||||
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
echo "announcing new user on mastodon"
|
||||||
|
toot "welcome new user ~$1!"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
|
@ -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
|
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.
|
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!
|
we look forward to seeing you around! welcome to the ~club!
|
||||||
|
|
||||||
your tilde.club admins,
|
your tilde.club admins,
|
||||||
|
|
Loading…
Reference in New Issue