Update mm-scripts.sh
This commit is contained in:
@@ -489,7 +489,6 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
|||||||
case $action in
|
case $action in
|
||||||
start | check)
|
start | check)
|
||||||
if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
|
if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
|
||||||
echo 'yes'
|
|
||||||
echo -e "${stopmsg}"
|
echo -e "${stopmsg}"
|
||||||
# [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
|
# [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
|
||||||
echo
|
echo
|
||||||
@@ -500,6 +499,8 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
|||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
elif [ ! -f ${MMFOLDER}/mm.stop ] && [ -f ${MMFOLDER}/mm.stop.checking ]; then
|
elif [ ! -f ${MMFOLDER}/mm.stop ] && [ -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*
|
||||||
|
|||||||
Reference in New Issue
Block a user