From 796d18a7058a0e695bb2e0f9043841ebbf4f89c7 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 19 Mar 2008 21:09:38 +0000 Subject: [PATCH] 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 --- perl-xCAT-2.0/xCAT/Utils.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl-xCAT-2.0/xCAT/Utils.pm b/perl-xCAT-2.0/xCAT/Utils.pm index 48397a9df..d2cf5d107 100644 --- a/perl-xCAT-2.0/xCAT/Utils.pm +++ b/perl-xCAT-2.0/xCAT/Utils.pm @@ -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)