Update mm-scripts.sh

This commit is contained in:
2023-06-26 18:36:14 -05:00
parent 1f56cb6fed
commit 59c71ab6bb

View File

@@ -134,7 +134,8 @@ MMSTART(){
fi
[ $VERBOSE = true ] && echo "$(date) - ${mmsv} VPN..." >> $logfile
echo "HERE: $(/bin/ip link)"
OUT=$(/bin/ip link | grep "$VPN_INTERFACE")
if [ ${#OUT} = 0 ]; then
@@ -152,6 +153,7 @@ MMSTART(){
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
elif [ -f ${TMPFOLDER}/mm.vpn.fail2 ]; then
echo -e "${idsCL[Red]} failed, shutting down system${idsCL[Default]}"
echo "$(date) - VPN Failure #3 - Shutting down Media Management systems" >> $logfile
SENDNOTICE "VPN Failure" "Final Failure, shutting down system" 2
MMSTOP