defect 3941
This commit is contained in:
parent
95a3d8ef3c
commit
4c88b1b469
@ -284,8 +284,22 @@ sub setdestiny {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if the postscripts directory exists then make sure it is
|
||||
# world readable and executable by root; otherwise wget fails
|
||||
my $installdir = xCAT::TableUtils->getInstallDir();
|
||||
my $postscripts = "$installdir/postscripts";
|
||||
if (-e $postscripts)
|
||||
{
|
||||
my $cmd = "chmod -R a+r $postscripts";
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
my $rsp = {};
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
$callback->({info=>"$cmd failed"});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#print Dumper($req);
|
||||
# if precreatemypostscripts=1, create each mypostscript for each node
|
||||
# otherwise, create it during installation /updatenode
|
||||
|
Loading…
Reference in New Issue
Block a user