Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user