2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

remove /.ssh/tmp/ directory

This commit is contained in:
immarvin 2017-10-17 23:18:04 -04:00
parent d7d56ddd7b
commit 1b1e2267a8

View File

@ -21,6 +21,7 @@ use HTTP::Cookies;
use File::Basename;
use File::Spec;
use File::Copy qw/copy cp mv move/;
use File::Path;
use Data::Dumper;
use Getopt::Long;
use xCAT::OPENBMC;
@ -1978,7 +1979,8 @@ rmdir \"/tmp/$userid\" \n";
$ENV{'DSH_FROM_USERID'}=$bak_DSH_FROM_USERID;
#remove intermediate files
unlink "$home/.ssh/copy.sh","$home/.ssh/tmp/authorized_keys";
unlink "$home/.ssh/copy.sh";
File::Path->remove_tree("$home/.ssh/tmp/");
}
if ($next_status{ $node_info{$node}{cur_status} }) {