Update mm-scripts.sh

This commit is contained in:
2022-03-30 19:03:53 -05:00
parent 61d8918272
commit 302aa7015c

View File

@@ -176,7 +176,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]}"
exit 0
exit 1
fi
touch /opt/mm.stop
MMSTART;;
@@ -185,6 +185,10 @@ if [ ! -f /opt/mm.update.stop ]; then
MMSTOP;;
restart)
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]}"
exit 1
fi
MMSTOP
MMSTART;;