Fix for bug 3298196.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2011-05-09 01:55:37 +00:00
parent f6907c7f3d
commit 049835a125

View File

@ -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)
{