diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c629a279..3a5bea43 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -732,7 +732,8 @@ SINGLE_SERVER_SERVICE_CHECK(){ servicestocheck=gitea IFS=,; services_to_check=(${servicestocheck}); unset IFS - local_ips=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1); + local_ips=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1); + # local_ips=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1); local_ip=$(/sbin/ip -o -4 addr list eth0 |grep 255 | awk '{print $4}' | cut -d/ -f1) if [[ ${local_ips} = *10.10.1.120* ]]; then if [ ! -f /mnt/web-data/mounted ]; then