Update nodemgmt-scripts.sh
This commit is contained in:
@@ -28,10 +28,8 @@ OFFSITE_STATICROUTE_FIX(){
|
|||||||
if [ "$(CHECK_HOST 10.10.0.1)" != "true" ]; then
|
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
|
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)
|
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
|
fi
|
||||||
else
|
|
||||||
echo "all good"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user