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