Update mm-scripts.sh
This commit is contained in:
@@ -292,12 +292,14 @@ MMSTATUS(){
|
|||||||
echo -e "${idsCL[Green]}Matches 0.0.0.0 route${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Matches 0.0.0.0 route${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Red]}Does not match 0.0.0.0 route${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Does not match 0.0.0.0 route${idsCL[Default]}"
|
||||||
|
if [ ! -f /opt/mm.stop ]; then
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
|
||||||
MMSTOP
|
MMSTOP
|
||||||
sleep 30s
|
sleep 30s
|
||||||
MMSTART
|
MMSTART
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo -en " |- Verify traffic route to VPN -> : "
|
echo -en " |- Verify traffic route to VPN -> : "
|
||||||
scip=$(dig +short sc1.scity.us @ns1.scity.us)
|
scip=$(dig +short sc1.scity.us @ns1.scity.us)
|
||||||
@@ -306,12 +308,14 @@ MMSTATUS(){
|
|||||||
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Red]}Not Good${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Not Good${idsCL[Default]}"
|
||||||
|
if [ ! -f /opt/mm.stop ]; then
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
|
||||||
MMSTOP
|
MMSTOP
|
||||||
sleep 30s
|
sleep 30s
|
||||||
MMSTART
|
MMSTART
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user