Update nodemgmt-scripts.sh

This commit is contained in:
2024-04-24 11:57:36 -05:00
parent 8f7c3b09b2
commit 94fa3be370

View File

@@ -28,10 +28,8 @@ OFFSITE_STATICROUTE_FIX(){
if [ "$(CHECK_HOST 10.10.0.1)" != "true" ]; then
if [ "$(CHECK_HOST ${NM_OFFSITE_GW_IP})" != "false" ] && [ "$(CHECK_HOST 10.5.0.1)" != "false" ] && [ "$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${NM_OFFSITE_GW_IP} ip r | grep 10.10.0.0)" = "" ]; then
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"
SENDNOTICE "Static Route to Homesite Missing" "Re-added the static route onto the UniFi Gateway"
fi
else
echo "all good"
fi
}