mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-11 14:00:17 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user