From 2a787aa34cfeb10fc0e3aed9a90b41eb7bf5fc07 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 24 Apr 2024 14:11:59 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e6b47e38..1f04094e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -42,8 +42,9 @@ OFFSITE_STATICROUTE_FIX(){ else if [ ! -f ${NM_TMPFOLDER}/vpn-tunnel.down ]; then touch ${NM_TMPFOLDER}/vpn-tunnel.down - elif [ $(expr `date +%s` - $(stat -c %Y ${NM_TMPFOLDER}/vpn-tunnel.down)) -ge 60 ]; then - SENDNOTICE "VPN to Homesite Down" "FiX'yO ShiTTy A$$ VPN" + elif [ $(expr `date +%s` - $(stat -c %Y ${NM_TMPFOLDER}/vpn-tunnel.down)) -ge 60 ] && [ ! -f ${NM_TMPFOLDER}/vpn-tunnel.down.sent ]; then + SENDNOTICE "VPN to Homesite Down" "FiX'yO ShiTTy aSS VPN" + touch ${NM_TMPFOLDER}/vpn-tunnel.down.sent fi fi fi