Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user