Update mm-scripts.sh

This commit is contained in:
2022-06-07 21:59:14 -05:00
parent f08ff4780a
commit da3325540c

View File

@@ -155,11 +155,13 @@ MMSTART(){
echo -e "${idsCL[Green]} done${idsCL[Default]}"
echo
if [ "${1}" == "start" ]; then
echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all systems fully start${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all services fully start${idsCL[Default]}"
echo
fi
if [ "${1}" == "start" ] || [ -f /opt/mm.vpn.fail* ]; then
echo "$(date) - Media Management systems started" >> $logfile
echo "$(date) - Media services have been restarted" >> $logfile
if [ "${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
rm -f /opt/mm.vpn.fail*
@@ -314,7 +316,7 @@ if [ ! -f /opt/mm.update.stop ]; then
start | check)
if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then
echo -e "${idsCL[Yellow]}The system is currently stopped ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}"
[ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
# [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
echo
exit 1
fi