mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-31 11:22:28 +00:00 
			
		
		
		
	Have diskless environment prefer 'primary' interface too
This commit is contained in:
		| @@ -101,7 +101,10 @@ done | ||||
| cd / | ||||
| nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') | ||||
| hostname $nodename | ||||
| confluent_mgr=$(grep ^MANAGER: /etc/confluent/confluent.info|head -n 1 | awk '{print $2}') | ||||
| confluent_mgr=$(grep '^EXTMGRINFO:.*1$' /etc/confluent/confluent.info | awk -F': ' '{print $2}' | awk -F'|' '{print $1}') | ||||
| if [ -z "$confluent_mgr" ]; then | ||||
|     confluent_mgr=$(grep ^MANAGER: /etc/confluent/confluent.info|head -n 1 | awk '{print $2}') | ||||
| fi | ||||
| if [[ $confluent_mgr == *%* ]]; then | ||||
|     echo $confluent_mgr | awk -F% '{print $2}' > /tmp/confluent.ifidx | ||||
|     ifidx=$(cat /tmp/confluent.ifidx) | ||||
|   | ||||
| @@ -102,7 +102,10 @@ done | ||||
| cd / | ||||
| nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') | ||||
| hostname $nodename | ||||
| confluent_mgr=$(grep ^MANAGER: /etc/confluent/confluent.info|head -n 1 | awk '{print $2}') | ||||
| confluent_mgr=$(grep '^EXTMGRINFO:.*1$' /etc/confluent/confluent.info | awk -F': ' '{print $2}' | awk -F'|' '{print $1}') | ||||
| if [ -z "$confluent_mgr" ]; then | ||||
|     confluent_mgr=$(grep ^MANAGER: /etc/confluent/confluent.info|head -n 1 | awk '{print $2}') | ||||
| fi | ||||
| if [[ $confluent_mgr == *%* ]]; then | ||||
|     echo $confluent_mgr | awk -F% '{print $2}' > /tmp/confluent.ifidx | ||||
|     ifidx=$(cat /tmp/confluent.ifidx) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user