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