From 049835a125032ee0dad1fbc02fa69b0179a9f876 Mon Sep 17 00:00:00 2001 From: sjing Date: Mon, 9 May 2011 01:55:37 +0000 Subject: [PATCH] Fix for bug 3298196. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/InstUtils.pm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/InstUtils.pm b/perl-xCAT/xCAT/InstUtils.pm index 9ef705352..3063e1069 100644 --- a/perl-xCAT/xCAT/InstUtils.pm +++ b/perl-xCAT/xCAT/InstUtils.pm @@ -1286,7 +1286,23 @@ sub dolitesetup # need to be rebooted if (-d $SRloc) { - my $ccmd = "/bin/cp $statelitetable $litefiletable $litetreetable $instrootloc/aixlitesetup $SRloc"; + my $ccmd = "/bin/cp"; + if (-e $statelitetable) + { + $ccmd .= " $statelitetable"; + } + + if (-e $litefiletable) + { + $ccmd .= " $litefiletable"; + } + + if (-e $litetreetable) + { + $ccmd .= " $litetreetable"; + } + + $ccmd .= " $instrootloc/aixlitesetup $SRloc"; my $out = xCAT::Utils->runcmd("$ccmd", -1); if ($::RUNCMD_RC != 0) {