From 3fb62771cb86323cc44284ab831bcb39198e66ec Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 10 Apr 2024 22:33:56 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 794626cf..d09ff7f0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -25,7 +25,7 @@ fi [ -f ${NM_BACKUP_FOLDER}/templates/*.config ] && rm -f ${NM_BACKUP_FOLDER}/templates/*.config OFFSITE_STATICROUTE_FIX(){ - if [ "$(CHECK_HOST 10.10.0.1)" = "false" ] && [ "$(CHECK_HOST ${NM_OFFSITE_GW_IP})" != "false" ] && [ "$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${NM_OFFSITE_GW_IP} ip r | grep 10.10.0.0)" = "" ]; then + if [ "$(CHECK_HOST 10.10.0.1)" != "true" ] && [ "$(CHECK_HOST ${NM_OFFSITE_GW_IP})" != "false" ] && [ "$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${NM_OFFSITE_GW_IP} ip r | grep 10.10.0.0)" = "" ]; then routeinfo=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${NM_OFFSITE_GW_IP} ip r | grep 10.10.0.0) RUN=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${NM_OFFSITE_GW_IP} ip r add 10.10.0.0/16 dev wgsts1000) SENDNOTICE "Static Routen to Homesite Missing" "Re-added the static route onto the UniFi Gateway"