Update mm-scripts.sh

This commit is contained in:
2023-03-23 21:47:26 -05:00
parent 2b3dce3feb
commit ad38830934

View File

@@ -488,11 +488,10 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
fi
case $action in
start | check)
echo 'yes'
if [ -f ${MMFOLDER}/mm.stop* ] && [ "${action}" = "check" ]; then
if [ -f ${MMFOLDER}/mm.stop* ] && [ "${action}" == "check" ]; then
if [ -f ${MMFOLDER}/mm.stop.checking ]; then
echo 'yes'
echo ${MMFOLDER}
checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)`
if [ $checkstopped -gt 900 ]; then