fix defect 3198081, need to look for either ese or server as top directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e9ec398ed7
commit
864348ce03
@ -349,14 +349,21 @@ sub installdb2code
|
||||
{
|
||||
my $msg;
|
||||
my $rc = 0;
|
||||
my $installcode = "$::installloc/ese/db2_install";
|
||||
my $installcode;
|
||||
my $installcode1 = "$::installloc/ese/db2_install";
|
||||
my $installcode2 = "$::installloc/server/db2_install";
|
||||
|
||||
if (!(-e $installcode))
|
||||
if ((!(-e $installcode1)) && (!(-e $installcode2)))
|
||||
{
|
||||
$msg = "db2install:$installcode does not exist. Cannot install DB2 code.\n";
|
||||
$msg = "db2install:Install code does not exist. Cannot install DB2 code.\n";
|
||||
`logger -t xcat $msg`;
|
||||
exit 1;
|
||||
}
|
||||
if (-e $installcode1 ) {
|
||||
$installcode=$installcode1;
|
||||
} else {
|
||||
$installcode=$installcode2;
|
||||
}
|
||||
|
||||
my $expect_log = "/tmp/xcatexpect.log";
|
||||
$msg =
|
||||
|
Loading…
Reference in New Issue
Block a user