This commit is contained in:
2023-11-08 14:28:40 -06:00
parent 72395d563d
commit 2ebc869f7e
2 changed files with 6 additions and 6 deletions

View File

@@ -295,7 +295,7 @@ MMSTART(){
echo
echo -e "${idsCL[Red]}Cannot get an WAN address, restarting system!${idsCL[Default]}"
echo "$(date) - Cannot get an WAN address, restarting system! wanip(${REALWANIP}) vpnip(${mmip})" >> ${MM_LOGFILE}
# [ $VERBOSE = true ] && echo "$(date) - Default Routes: zerogw(${zerogw}) defaultgw(${defaultgw})" >> ${MM_LOGFILE}
[ $VERBOSE = true ] && echo "$(date) - Default Routes: zerogw(${zerogw}) defaultgw(${defaultgw})" >> ${MM_LOGFILE}
SENDNOTICE "Network Failure" "Cannot get an WAN address, will try and restart the VPN" 1
touch ${TMPFOLDER}/mm.vpn.fail
MMSTOP >/dev/null 2>&1
@@ -311,7 +311,7 @@ MMSTART(){
done
if [ "${REALWANIP}" != "${mmip}" ]; then
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
[ $VERBOSE = true ] && echo "$(date) - WAN Address: ${mmip} - GW Address: ${defaultgw}" >> ${MM_LOGFILE}
# [ $VERBOSE = true ] && echo "$(date) - WAN Address: ${mmip} - GW Address: ${defaultgw}" >> ${MM_LOGFILE}
else
echo
echo -e "${idsCL[Red]}Traffic is not routing through VPN, restarting system!${idsCL[Default]}"
@@ -489,9 +489,9 @@ MMSTART(){
fi
rm -f ${TMPFOLDER}/mm.stop*
echo -e "${idsCL[Green]}All systems are go!${idsCL[Default]}"
# if [ "${1}" = "start" ] || [ "${1}" = "" ]; then
if [ "${1}" = "start" ] || [ "${1}" = "" ]; then
echo "$(date) - Media Management systems STARTED" >> ${MM_LOGFILE}
# fi
fi
fi
echo
@@ -728,7 +728,7 @@ MMSTATUS(){
echo
echo -e "${idsCL[LightCyan]}Starting system back up...${idsCL[Default]}"
echo
MMSTART
MMSTART start
fi
fi