Update nodemgmt-scripts.sh

This commit is contained in:
2019-04-03 19:39:18 -05:00
parent 308bd84e2d
commit 5c7841d3b0

View File

@@ -1263,7 +1263,7 @@ SERVICE(){
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;
#elif [ ! -z ${3+x} ] || [ "${3}" == "q" ]; then GO=true;
else GO=false;
fi
if [ "${GO}" == "true" ]; then