From 2904068c3ab9c76abb007d16b24eb9a4ba52b9b6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Feb 2023 17:42:48 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 8f28a66..a97b06e 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -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]}"