Added Recovery Account function to makeuser script

This commit is contained in:
Naglfar committed 2020-01-15 19:16:53 +01:00
1 parent 2faf2d9d0a
commit a03c58b202
3 files changed
+13 -2

No files matched your search

+7
View File
@@ -34,3 +34,10 @@ makeuser_no_ansible()
#If root doesn't have a fediverse account, comment this out
#sudo toot "welcome new user ~$1!"
}
add_account_recovery()
{
sudo mkdir --mode=700 /home/$1/.thunix
sudo echo echo $2 > /home/$1/.thunix/recovery
sudo chmod 600 > /home/$1/.thunix/recovery
}