fixed null pub_key in create-user.pl

This commit is contained in:
gashapwn 2020-11-27 05:49:15 +00:00
parent 3438503097
commit 1993b83810
2 changed files with 1 additions and 6 deletions

View File

@ -69,7 +69,7 @@ sub create($){
} }
system($cmd); system($cmd);
system("echo '$pub_key' > /home/$username/.ssh/authorized_keys"); system("echo '".$pub_key."' > /home/$username/.ssh/authorized_keys");
system("chmod 711 /home/$username"); system("chmod 711 /home/$username");
system("mv $fn1 $fn1.done"); system("mv $fn1 $fn1.done");
system("echo $username >> user_list.txt"); system("echo $username >> user_list.txt");

View File

@ -1,6 +1 @@
click==7.1.2
Flask==1.1.2 Flask==1.1.2
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
Werkzeug==1.0.1