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
This commit is contained in:
parent
c9f96c82b2
commit
e19be49149
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user