Update mm-scripts.sh

This commit is contained in:
2022-06-07 22:21:33 -05:00
parent da3325540c
commit 6b6c6bae98

View File

@@ -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