create_user.pl - fixed filename test

This commit is contained in:
gashapwn 2020-12-29 04:16:03 +00:00
parent 00e09fd15e
commit b30ebc7f23

View File

@ -90,7 +90,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("test -f $fn1 && mv $fn1 $fn1.done"); system("test $fn1 && mv $fn1 $fn1.done");
system("echo $username >> $ul_path"); system("echo $username >> $ul_path");
} }
close IN0; close IN0;