Update mm-scripts.sh
This commit is contained in:
1 parent
ed36d5e936
commit
d625d5350c
1 file changed
+4
@@ -315,6 +315,10 @@ MMSTATUS(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -f /opt/mm.update.stop ]; then
|
if [ ! -f /opt/mm.update.stop ]; then
|
||||||
|
if [ -f /opt/mm.stop ]; then
|
||||||
|
stoppedsince=`date +%s`-$(stat -c %Y /opt/mm.stop)
|
||||||
|
stopmsg="${idsCL[Yellow]}The system has currently been stopped for '${stoppedsince}'. ${idsCL[LightCyan]}(You must run \"mm start\" to start services again)${idsCL[Default]}"
|
||||||
|
fi
|
||||||
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
|
||||||
|
|||||||
Reference in new issue
Block a user