cleanup tmp files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16389 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
a7537857db
commit
29aa9d83a7
@ -74,12 +74,18 @@ sub create_mypostscript_or_not {
|
||||
if ($entries[0] ) {
|
||||
$entries[0] =~ tr/a-z/A-Z/;
|
||||
if ($entries[0] =~ /^(1|YES)$/ ) {
|
||||
#if the site.precreatemypostscripts=1,
|
||||
# we will remove the mypostscript.$n.tmp files for the noderange
|
||||
foreach my $n (@$nodes ) {
|
||||
unlink("$tftpdir/mypostscripts/mypostscript.$n.tmp");
|
||||
}
|
||||
my $state;
|
||||
if ($request->{scripttype}) { $state = $request->{scripttype}->[0];}
|
||||
xCAT::Postage::makescript($nodes, $state, $callback,$notmpfiles,$nofiles);
|
||||
}
|
||||
} else {
|
||||
#if the site.precreatemypostscripts=0, we will remove the mypostscript.$n
|
||||
#if the site.precreatemypostscripts=0,we will remove the mypostscript.$n
|
||||
# files for this noderange
|
||||
foreach my $n (@$nodes ) {
|
||||
unlink("$tftpdir/mypostscripts/mypostscript.$n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user