From d344458ddc349e7be0643d87bd6f0638bc7e1a25 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Feb 2019 23:52:14 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8c7416a9..8f82eb87 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1451,7 +1451,7 @@ SERVICE(){ echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}" nid=1 - if [[ "${NODESERVICES_CHECK}" = *" ${1} "* ]]; then + if [[ "${NODESERVICES_CHECK}" = *"${1}"* ]]; then for nip in "${NODE_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then nip='localhost ' @@ -1472,7 +1472,7 @@ SERVICE(){ fi nid=`expr $nid + 1` done - elif [[ "${WEBSERVICES_CHECK}" = *" ${1} "* ]]; then + elif [[ "${WEBSERVICES_CHECK}" = *"${1}"* ]]; then for nip in "${WEB_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then nip='localhost '