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)