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