From 21af626dda56b6a570e9727eb46dc99c8f8dfc56 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 3 Apr 2019 19:42:59 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index dded9656..14d393ca 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1262,11 +1262,11 @@ SERVICE(){ nid=1 var2=${NTYPE}_HOSTS[@] for nip in "${!var2}"; do - if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${3}"* ]]; then GO=true; - #elif [ ! -z ${3+x} ] || [ "${3}" == "q" ]; then GO=true; - else GO=false; - fi - if [ "${GO}" == "true" ]; then + # if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${3}"* ]]; then GO=true; + # elif [ ! -z ${3+x} ] || [ "${3}" == "q" ]; then GO=true; + # else GO=false; + # fi + # if [ "${GO}" == "true" ]; then if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then nip='localhost ' NCMD='' @@ -1288,7 +1288,7 @@ SERVICE(){ echo -e "${idsCL[Red]}ERROR${idsCL[Default]}" fi fi - fi + # fi nid=`expr $nid + 1` done fi