Update nodemgmt-scripts.sh

This commit is contained in:
2023-05-15 16:04:33 -05:00
parent c143a9ee34
commit 76a6f6acc9

View File

@@ -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