Update run.sh

This commit is contained in:
2023-04-02 21:07:05 -05:00
parent ab6003324d
commit 4186af9a65

4
run.sh
View File

@@ -70,7 +70,7 @@ else
if [ "${1}" == "clear" ]; then
rm -f ${MMFOLDER}/mm.*
fi
if [ -f ${MMFOLDER}/mm.stop.checking ] && [ "${1}" != "status" ] && [ "${1}" != "update-service" ] && [ "${1}" != "update-allservices" ] && [ "${1}" != "stop" ]; then
if [ -f ${MMFOLDER}/mm.stop.checking ]; then
#fd=$(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking))
if [ $(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking)) -gt 900 ]; then
rm -f ${MMFOLDER}/mm.stop*
@@ -81,7 +81,7 @@ else
fi
fi
if [ ! -f ${MMFOLDER}/mm.stop.checking ] || [ "${1}" == "status" ]; then
if [ ! -f ${MMFOLDER}/mm.stop.checking ] || [ "${1}" == "status" ] || [ "${1}" == "update-service" ] || [ "${1}" == "update-allservices" ] || [ "${1}" == "stop" ]; then
${MMFOLDER}/mm-scripts.sh ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}
fi