This commit is contained in:
2023-02-26 21:55:21 -06:00
parent 49926d4cad
commit 73ce13e6a1
2 changed files with 6 additions and 4 deletions

View File

@@ -448,8 +448,10 @@ MMSTATUS(){
else
echo -e "${idsCL[Red]}Not correct${idsCL[Default]}"
echo
echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}"
MMSTOP
if [ ! -f ${MMFOLDER}/mm.checking ]; then
echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}"
MMSTOP
fi
fi
fi
@@ -462,7 +464,7 @@ MMSTATUS(){
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
else
echo -e "${idsCL[Red]}Not Good${idsCL[Default]}"
if [ ! -f ${MMFOLDER}/mm.stop ]; then
if [ ! -f ${MMFOLDER}/mm.stop ] && [ ! -f ${MMFOLDER}/mm.checking ]; then
echo
echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
MMSTOP

2
run.sh
View File

@@ -62,7 +62,7 @@ if [ "${1}" == "update" ]; then
else
[ "${1}" == "clear" ] && rm -f ${MMFOLDER}/mm.*
if [ -f ${MMFOLDER}/mm.checking ]; then
if [ -f ${MMFOLDER}/mm.checking ] && [ "${1}" != "status" ]; then
fd=$(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.checking))
if [ ${fd} -gt 900 ]; then
rm -f ${MMFOLDER}/mm.checking