Update mm-scripts.sh
This commit is contained in:
@@ -176,6 +176,7 @@ if [ ! -f /opt/mm.update.stop ]; then
|
|||||||
start | check)
|
start | check)
|
||||||
if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then
|
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]}"
|
echo -e "${idsCL[Yellow]}The system is currently stopped ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}"
|
||||||
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
touch /opt/mm.stop
|
touch /opt/mm.stop
|
||||||
@@ -187,6 +188,7 @@ if [ ! -f /opt/mm.update.stop ]; then
|
|||||||
restart)
|
restart)
|
||||||
if [ -f /opt/mm.stop ]; then
|
if [ -f /opt/mm.stop ]; then
|
||||||
echo -e "${idsCL[Yellow]}The system is currently stopped ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}The system is currently stopped ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}"
|
||||||
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
MMSTOP
|
MMSTOP
|
||||||
|
|||||||
Reference in New Issue
Block a user