Update mm-scripts.sh
This commit is contained in:
@@ -488,7 +488,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||
fi
|
||||
case $action in
|
||||
start | check)
|
||||
if ([ -f ${MMFOLDER}/mm.stop ] || [ -f ${MMFOLDER}/mm.stop.checking ]) && [ "${action}" = "check" ]; then
|
||||
if [ -f ${MMFOLDER}/mm.stop* ] && [ "${action}" = "check" ]; then
|
||||
if [ -f ${MMFOLDER}/mm.stop.checking ]; then
|
||||
checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)`
|
||||
if [ $checkstopped -gt 900 ]; then
|
||||
@@ -516,6 +516,8 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||
fi
|
||||
# touch ${MMFOLDER}/mm.stop
|
||||
[ "${action}" = "check" ] && touch ${MMFOLDER}/mm.stop.checking
|
||||
echo 'yes'
|
||||
|
||||
MMSTART ${action} ${2};;
|
||||
|
||||
stop)
|
||||
|
||||
Reference in New Issue
Block a user