create_user.pl - fixed filename test
This commit is contained in:
parent
00e09fd15e
commit
b30ebc7f23
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user