Update mm-scripts.sh

This commit is contained in:
2023-04-22 18:28:50 -05:00
parent a28fc4fefa
commit 70cf5d2bbf

View File

@@ -1147,6 +1147,7 @@ USAGE(){
if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
[ "${2}" == "q" ] && [ "${action}" == "check" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
if [ -f ${MMFOLDER}/mm.stop ]; then
stoppedsince=`date +%s`-$(stat -c %Y ${MMFOLDER}/mm.stop)
stopmsg="${idsCL[Yellow]}The system has currently been stopped for '$(SHOW_TIME ${stoppedsince})'.\n${idsCL[LightCyan]}(You'll need to run \"mm start\" to start services again)${idsCL[Default]}"
@@ -1179,7 +1180,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
exit 1
fi
fi
[ "${2}" == "q" ] && [ "${action}" == "check" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
[ "${action}" != "status" ] && touch ${MMFOLDER}/mm.stop.checking
[ "${2}" == "vpn" ] && touch ${MMFOLDER}/mm.noservices
[ ! -f ${MMFOLDER}/mm.stop ] && MMSTART ${action} ${2}