Update nodemgmt-scripts.sh

This commit is contained in:
voltron committed 2019-02-27 00:08:02 -06:00
1 parent 727e53a70c
commit b4293da182
1 file changed
+1
+1
View File
@@ -1473,6 +1473,7 @@ SERVICE(){
nid=`expr $nid + 1` nid=`expr $nid + 1`
done done
fi fi
nid=1
if [[ "${WEBSERVICES_CHECK}" = *"${1}"* ]]; then if [[ "${WEBSERVICES_CHECK}" = *"${1}"* ]]; then
for nip in "${WEB_HOSTS[@]}"; do for nip in "${WEB_HOSTS[@]}"; do
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then