Update nodemgmt-scripts.sh

This commit is contained in:
2023-06-23 22:41:23 -05:00
parent e087a796d6
commit 95d2f754f9

View File

@@ -731,6 +731,8 @@ SINGLE_SERVER_SERVICE_CHECK(){
dockerstocheck=${1}_SINGLESRVR_DOCKERS
hosts=${1}_HOSTS
echo $servicestocheck
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)