Update nodemgmt-scripts.sh

This commit is contained in:
2024-08-05 19:56:58 -05:00
parent 47a78f3338
commit 5c0cf69d68

View File

@@ -26,14 +26,14 @@ fi
OFFSITE_STATICROUTE_FIX(){
if [ -f ${NM_TMPFOLDER}/vpn-tunnel.down.sent ]; then
[ "$(CHECK_HOST_NM 10.5.0.1)" != "true" ] && exit
[ "$(CHECK_HOST 10.5.0.1)" != "true" ] && exit
fi
if [ "$(CHECK_HOST_NM 10.10.0.1)" != "true" ]; then
if [ "$(CHECK_HOST 10.10.0.1)" != "true" ]; then
if [ "$(CHECK_HOST ${NM_OFFSITE_GW_IP})" != "false" ]; then
if [ "$(CHECK_HOST_NM 10.5.0.1)" != "false" ]; then
if [ "$(CHECK_HOST 10.5.0.1)" != "false" ]; then
if [ -f ${NM_TMPFOLDER}/vpn-tunnel.down ]; then
SENDNOTICE "VPN to Homesite is Back Up" "VPN Tunnel is up"
fi