diff --git a/mm-scripts.sh b/mm-scripts.sh index 360e416..206010d 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -160,7 +160,7 @@ MMSTART(){ fi if [ "${1}" == "start" ] || [ -f /opt/mm.vpn.fail* ]; then echo "$(date) - Media services have been restarted" >> $logfile - if [ "${1}" != "start" ] && [ -f /opt/mm.vpn.fail* ]; then + elif [ "${1}" != "start" ] && [ -f /opt/mm.vpn.fail* ]; then [ $SENDNOTICE = true ] && echo "Media services have been restarted" | mail -s "Services Restored" 9208839613@mms.att.net fi rm -f /opt/mm.stop