update
This commit is contained in:
@@ -448,8 +448,10 @@ MMSTATUS(){
|
|||||||
else
|
else
|
||||||
echo -e "${idsCL[Red]}Not correct${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Not correct${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}"
|
if [ ! -f ${MMFOLDER}/mm.checking ]; then
|
||||||
MMSTOP
|
echo -e "${idsCL[LightCyan]}Shutting down system... fix yo shit${idsCL[Default]}"
|
||||||
|
MMSTOP
|
||||||
|
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
2
run.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user