From 1a1b6d75ea9255d24d10c76f96d65534a978f93f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 20:36:12 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index d4a000e..d297b81 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1308,7 +1308,7 @@ USAGE(){ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then - [ "${2}" == "q" ] && [ "${action}" == "check" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile} + [ "${2}" == "q" ] && [ "${action}" == "check" ] && [ ! -f ${MMFOLDER}/mm.stop ] && 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]}" @@ -1316,9 +1316,11 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then case $action in start | check) if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then - echo -e "${stopmsg}" - # [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile - echo + if [ "${2}" != "q" ]; then + echo -e "${stopmsg}" + # [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile + echo + fi exit 1 elif [ "${VPN_USER}" == "" ] || [ "${VPN_PASS}" == "" ] || [ "${VPN_SERVER}" == "" ]; then echo "$(date) - VPN User Info Missing" >> $logfile