From e19be4914950f3d8217622b963e899814f37f004 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 8 Jun 2011 15:37:50 +0000 Subject: [PATCH] Make the databaseloc directory, if it does not exist git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9765 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/db2sqlsetup | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-client/bin/db2sqlsetup b/xCAT-client/bin/db2sqlsetup index a888e659f..6be972c75 100755 --- a/xCAT-client/bin/db2sqlsetup +++ b/xCAT-client/bin/db2sqlsetup @@ -245,6 +245,15 @@ if ($ENV{'DATABASELOC'}) # input where xcatdb is located } } +if (!(-e $::databaselocdir)){ # if it does not exist, create it + my $cmd = "mkdir -p $::databaselocdir"; + xCAT::Utils->runcmd($cmd, 0); + if ($::RUNCMD_RC != 0) + { + xCAT::MsgUtils->message("E", " $cmd failed."); + exit(1); + } +} # if we are on the MN ( db2 server) if ($::SERVER) {