mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	-Fix more syntax errors in shell scripts related to NODESETSTATE
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4314 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -228,7 +228,7 @@ sub makescript { | ||||
| 	} | ||||
|  | ||||
|   if (!$nodesetstate) { $nodesetstate=getnodesetstate($node);} | ||||
|   push @scriptd, "NODESETSTATE=".$nodesetstate."\n"; | ||||
|   push @scriptd, "NODESETSTATE=\"".$nodesetstate."\"\n"; | ||||
|   push @scriptd, "export NODESETSTATE\n"; | ||||
|  | ||||
|   # set the UPDATENODE flag in the script, the default it 0, that means not in the updatenode process, xcatdsklspost and xcataixpost will set it to 1 in updatenode case | ||||
|   | ||||
| @@ -18,9 +18,9 @@ if [[ $NOSYNCFILES -eq 1 ]]; then | ||||
| fi | ||||
|  | ||||
| # do nothing for diskless deployment case because it is done in the image already | ||||
| if [ $NODESETSTATE = "netboot" -o \ | ||||
|      $NODESETSTATE = "diskless" -o \ | ||||
|      $NODESETSTATE = "dataless" ]  | ||||
| if [ "$NODESETSTATE" = "netboot" -o \ | ||||
|      "$NODESETSTATE" = "diskless" -o \ | ||||
|      "$NODESETSTATE" = "dataless" ]  | ||||
| then | ||||
|   exit 0 | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user