Add mkdir of autoinst if it does not exist in create_postscripts_tar
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@846 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
cb0d2b76db
commit
796d18a705
@ -1726,6 +1726,10 @@ sub create_postscripts_tar
|
||||
{
|
||||
my ($class) = @_;
|
||||
my $cmd;
|
||||
if (!(-e "/install/autoinst")) {
|
||||
mkdir ("/install/autoinst");
|
||||
}
|
||||
|
||||
$cmd="cd /install/postscripts;tar -cjf /install/autoinst/xcatpost.tar.bz2 * .ssh/*";
|
||||
my @result = xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user