From ec2089acbe3d75c3a2a3dc6a407b9f528b64e5b5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 23 Mar 2023 21:56:45 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index a813029..eaa767b 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -489,7 +489,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then case $action in start | check) if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then - echo 'yes' echo -e "${stopmsg}" # [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile echo @@ -500,6 +499,8 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then echo exit 1 elif [ ! -f ${MMFOLDER}/mm.stop ] && [ -f ${MMFOLDER}/mm.stop.checking ]; then + echo 'yes' + checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)` if [ $checkstopped -gt 900 ]; then rm -f ${MMFOLDER}/mm.stop*