From c143a9ee347afa50d0a95e14b1d67e282fa39a58 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 15 May 2023 15:56:10 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 05c5448e..c629a279 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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