working now!

This commit is contained in:
Ben Harris 2018-09-20 11:40:17 -04:00
parent 8c385dff1d
commit 8ac1e9271b
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ signal_exit() { # Handle trapped signals
}
usage() {
echo -e "usage: $PROGNAME [-h|--help] <username> <email> <pubkey>"
echo -e "usage: $PROGNAME [-h|--help] <username> <email> \"<pubkey>\""
}
help_message() {
@ -99,7 +99,7 @@ while [[ -n $1 ]]; do
useradd -m -p $pwcrypt -s /bin/bash $user || exit 1
sed -e 's/newusername/$user/g' -e 's/newpassword/$newpw/' email.tmpl | sendmail $email sudoers@tilde.team
sed -e "s/newusername/$user/g" -e "s/newpassword/$newpw/" email.tmpl | sendmail $email sudoers@tilde.team
echo "$sshkey" | sudo tee /home/$user/.ssh/authorized_keys
toot "welcome new user ~$user!"