Update mm-scripts.sh

This commit is contained in:
2023-03-23 21:45:31 -05:00
parent 9b43690719
commit 2b3dce3feb

View File

@@ -488,8 +488,12 @@ 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.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*
@@ -516,7 +520,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
fi
# touch ${MMFOLDER}/mm.stop
[ "${action}" = "check" ] && touch ${MMFOLDER}/mm.stop.checking
echo 'yes'
MMSTART ${action} ${2};;