mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	changed logic to check for runnin on SN to allow for install of MN when it use to be a service node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8184 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -42,13 +42,6 @@ $::INSTALLDIR = "/install"; | ||||
|  | ||||
| # Default TFTP dir location | ||||
| $::TFTPDIR = "/tftpboot"; | ||||
| if ((xCAT::Utils->isServiceNode())) {    # if not on Management Node | ||||
|   xCAT::MsgUtils->message( | ||||
|             'E', | ||||
|             "xcatconfig should only be run on the Management Node." | ||||
|             ); | ||||
|    exit 1; | ||||
| } | ||||
|  | ||||
| # parse the options | ||||
| if ( | ||||
| @@ -123,6 +116,14 @@ if (($::INITIALINSTALL) && ($::UPDATEINSTALL)) | ||||
|     xCAT::MsgUtils->message("N", $warning); | ||||
|     exit 1; | ||||
| } | ||||
| #If not asking to install and you are on the servicenode, then error | ||||
| if (!($::INITIALINSTALL) && (xCAT::Utils->isServiceNode())) {  | ||||
|   xCAT::MsgUtils->message( | ||||
|             'E', | ||||
|             "xcatconfig should only be run on the Management Node." | ||||
|             ); | ||||
|    exit 1; | ||||
| } | ||||
|  | ||||
| # | ||||
| # Display command | ||||
|   | ||||
		Reference in New Issue
	
	Block a user