Update mm-scripts.sh

This commit is contained in:
2023-02-23 20:47:23 -06:00
parent 876bb3de89
commit ba2fa5e617

View File

@@ -246,7 +246,7 @@ MMSTART(){
if [ "${1}" == "start" ]; then
#echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all services fully start${idsCL[Default]}"
MMSTATUS
MMSTATUS full
fi
if [ -f /opt/idssys/mediamanager/mm.vpn.fail* ]; then
echo "$(date) - VPN issue has been fixed" >> $logfile
@@ -371,7 +371,7 @@ MMSTATUS(){
else
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]]; then
if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]] || [ "${1}" = "full" ]; then
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
echo -e " |- 0.0.0.0 gateway : ${idsCL[Green]}$zerogw${idsCL[Default]}"