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,9 +448,11 @@ MMSTATUS(){
else else
echo -e "${idsCL[Red]}Not correct${idsCL[Default]}" echo -e "${idsCL[Red]}Not correct${idsCL[Default]}"
echo echo
if [ ! -f ${MMFOLDER}/mm.checking ]; then
echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}"
MMSTOP MMSTOP
fi fi
fi
fi fi
fi fi
@@ -462,7 +464,7 @@ MMSTATUS(){
echo -e "${idsCL[Green]}Good${idsCL[Default]}" echo -e "${idsCL[Green]}Good${idsCL[Default]}"
else else
echo -e "${idsCL[Red]}Not Good${idsCL[Default]}" 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
echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
MMSTOP MMSTOP

2
run.sh
View File

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