Update nodemgmt-scripts.sh

This commit is contained in:
2023-05-15 15:56:10 -05:00
parent b8003bee7c
commit c143a9ee34

View File

@@ -735,6 +735,10 @@ SINGLE_SERVER_SERVICE_CHECK(){
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
/bin/mount -a
sleep 5s
fi
if [ -f /mnt/web-data/mounted ]; then
for stc in "${services_to_check[@]}"; do
if [ "$(systemctl is-active ${stc}.service)" != "active" ]; then