Update mm-scripts.sh
This commit is contained in:
@@ -322,7 +322,7 @@ if [ ! -f /opt/mm.update.stop ]; then
|
|||||||
case $action in
|
case $action in
|
||||||
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 "${stopmsg}"
|
||||||
# [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
|
# [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
@@ -335,7 +335,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 "${stopmsg}"
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -345,7 +345,7 @@ if [ ! -f /opt/mm.update.stop ]; then
|
|||||||
|
|
||||||
status)
|
status)
|
||||||
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 "${stopmsg}"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
MMSTATUS;;
|
MMSTATUS;;
|
||||||
|
|||||||
Reference in New Issue
Block a user