From b5a58f3c754e333c2d32e515c8de73d3e8c1704e Mon Sep 17 00:00:00 2001 From: deepend Date: Tue, 2 Jan 2024 22:26:18 +0000 Subject: [PATCH] Update include/functions --- include/functions | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/functions b/include/functions index bbfc577..24fbc02 100644 --- a/include/functions +++ b/include/functions @@ -20,15 +20,13 @@ makeuser_no_ansible() newpw=`pwgen -1B 10` pwcrypt=$(perl -e "print crypt('${newpw}', 'sa');") sudo useradd -m -g 1001 -p $pwcrypt -s /bin/bash $1 || exit 1 - #This is the welcome for team. - #sed -e "s/newusername/$1/g" -e "s/newpassword/$newpw/" $EMAIL_TEMPLATE | sudo mail $1 $2 $ADMIN_EMAIL #This is the welcome email for thunix 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 #We don't need this for thunix, since ansible will do it - #echo "$3" | tee /home/$1/.ssh/authorized_keys + echo "$3" | tee /home/$1/.ssh/authorized_keys #If root doesn't have a fediverse account, comment this out #sudo toot "welcome new user ~$1!"