mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	fix defect 3145930
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -381,10 +381,13 @@ if (($::INIT) && ($::xcatrunningdb2 == 0)) | ||||
|     # | ||||
|     if ($::SERVER) | ||||
|     { | ||||
|         &restorexcatdb; | ||||
|        if ($::xcatrunningdb2 == 0) # if not already running on db2 | ||||
|        { | ||||
|           &restorexcatdb; | ||||
|        } | ||||
|  | ||||
|         xCAT::MsgUtils->message("I", | ||||
|                                 "xCAT is now running on the DB2 database.\n"); | ||||
|                                 "xCAT is  running on the DB2 database.\n"); | ||||
|  | ||||
|     } | ||||
|     else  # client | ||||
| @@ -504,12 +507,7 @@ sub backupxcatdb | ||||
|  | ||||
| { | ||||
|  | ||||
|     # If there is no backup or the /etc/xcat/cfgloc file does not point to | ||||
|     # pgsql, then we backup the database | ||||
|     my $sitefile = "$::backupdir/site.csv"; | ||||
|  | ||||
|     if ((!(-e $sitefile)) || ($::xcatrunningdb2 == 0)) | ||||
|     { | ||||
|         xCAT::MsgUtils->message( | ||||
|             "I", | ||||
|             "Backing up xCAT Database to $::backupdir.\nThis could take several minutes." | ||||
| @@ -544,7 +542,6 @@ sub backupxcatdb | ||||
|             xCAT::MsgUtils->message("E", " $cmd failed."); | ||||
|             exit(1); | ||||
|         } | ||||
|     } | ||||
|  | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user