Update mm-scripts.sh

This commit is contained in:
2023-02-25 17:42:48 -06:00
parent 184da94555
commit 2904068c3a

View File

@@ -300,6 +300,11 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
fi
echo
if [ "${1}" == "check" ]; then
MMUPDATECHECK
fi
[ $VERBOSE = true ] && DEBUGLOGSTOP
#exit 0
@@ -485,7 +490,6 @@ MMUPDATECHECK(){
}
if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
MMUPDATECHECK
if [ -f ${MMFOLDER}/mm.stop ]; then
stoppedsince=`date +%s`-$(stat -c %Y ${MMFOLDER}/mm.stop)
stopmsg="${idsCL[Yellow]}The system has currently been stopped for '$(SHOW_TIME ${stoppedsince})'.\n${idsCL[LightCyan]}(You'll need to run \"mm start\" to start services again)${idsCL[Default]}"