From c22f52d0e4401bebfd70e7d7ce05d7a3f04f8ed1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 23 Jun 2023 22:41:45 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 2fe93d28..5d0166fc 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -727,12 +727,10 @@ HAPROXY-CONFIG() { } SINGLE_SERVER_SERVICE_CHECK(){ - servicestocheck=${1}_SINGLESRVR_SERVICES - dockerstocheck=${1}_SINGLESRVR_DOCKERS - hosts=${1}_HOSTS - - echo $servicestocheck - + servicestocheck=${1^^}_SINGLESRVR_SERVICES + dockerstocheck=${1^^}_SINGLESRVR_DOCKERS + hosts=${1^^}_HOSTS + if [ "${!servicestocheck}" != "" ] || [ "${!dockerstocheck}" != "" ]; then local_ips=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1); local_ip=$(/sbin/ip -o -4 addr list eth0 |grep 255 | awk '{print $4}' | cut -d/ -f1)