add creation of database directory, if it does not exist on the service node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9764 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b0515adb97
commit
c9f96c82b2
@ -18,6 +18,7 @@
|
||||
More information can be obtained from the xCAT http://xcat.svn.sourceforge.net/viewvc/xcat/xcat-core/trunk/xCAT-client/share/doc/xCAT2SetupDB2.pdf.
|
||||
Needs export MASTER=site.master
|
||||
export DB2INSTALLLOC=site.db2installlloc
|
||||
export DATABASELOC=site.databaseloc
|
||||
export XCATDPORT=site.xcatdport
|
||||
export NODE=<mynodename>
|
||||
|
||||
@ -533,6 +534,9 @@ sub rundb2sqlsetup
|
||||
chomp $xcatcfg;
|
||||
my ($database, $instance, $password) = split('\|', $xcatcfg);
|
||||
if ($::databaseloc) {
|
||||
if (!(-e $::databaseloc)) { # if it does not exist, create it
|
||||
&runcmd("mkdir -p $::databaseloc");
|
||||
}
|
||||
$cmd =
|
||||
"DATABASELOC=$::databaseloc XCATDB2SERVER=$::MN XCATDB2PW=$password $::XCATROOT/bin/db2sqlsetup -i -C";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user