Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-27 00:06:44 -06:00
parent 030d77e8cd
commit 727e53a70c

View File

@@ -1472,7 +1472,8 @@ SERVICE(){
fi
nid=`expr $nid + 1`
done
elif [[ "${WEBSERVICES_CHECK}" = *"${1}"* ]]; then
fi
if [[ "${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 '