Update mm-scripts.sh

This commit is contained in:
2023-04-27 07:54:17 -05:00
parent 6e45cd96a1
commit 1140861d17

View File

@@ -45,6 +45,7 @@ cw_spc=40
MMSTART(){
echo "HERE: ${action} - ${1} - ${2}"
[ $VERBOSE = true ] && chktmstart=`date +%s`
if [ "${1}" = "start" ] || [ "${1}" = "restart" ] || [ "${1}" = "" ]; then
GOFORSTART=true;
@@ -1302,7 +1303,6 @@ if [ ! -f ${MMFOLDER}/mm.update.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]}"
fi
echo "HERE: ${action} - ${1} - ${2}"
case $action in
start | check)
if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then