Update mm-scripts.sh
This commit is contained in:
@@ -1147,6 +1147,7 @@ USAGE(){
|
||||
|
||||
|
||||
if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||
[ "${2}" == "q" ] && [ "${action}" == "check" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
|
||||
if [ -f ${MMFOLDER}/mm.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]}"
|
||||
@@ -1179,7 +1180,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
[ "${2}" == "q" ] && [ "${action}" == "check" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
|
||||
[ "${action}" != "status" ] && touch ${MMFOLDER}/mm.stop.checking
|
||||
[ "${2}" == "vpn" ] && touch ${MMFOLDER}/mm.noservices
|
||||
[ ! -f ${MMFOLDER}/mm.stop ] && MMSTART ${action} ${2}
|
||||
|
||||
Reference in New Issue
Block a user