fix so you can migrate between mysql/db2/pgsql
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f2490e5117
commit
ffb252217c
@ -868,7 +868,14 @@ sub createcfgloc
|
||||
|
||||
sub restorexcatdb
|
||||
{
|
||||
|
||||
# set the env variable for Table.pm for the new database
|
||||
my $xcatcfg;
|
||||
my $cfgl;
|
||||
open($cfgl,"<","/etc/xcat/cfgloc");
|
||||
$xcatcfg = <$cfgl>;
|
||||
close($cfgl);
|
||||
chomp($xcatcfg);
|
||||
|
||||
# restore the database
|
||||
xCAT::MsgUtils->message(
|
||||
"I",
|
||||
@ -882,7 +889,7 @@ sub restorexcatdb
|
||||
}
|
||||
|
||||
# restore it
|
||||
my $cmd = "XCATBYPASS=1 restorexCATdb -p $::backupdir";
|
||||
my $cmd = "XCATBYPASS=1 XCATCFG=\"$xcatcfg\" restorexCATdb -p $::backupdir";
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user