From 6e45cd96a17b2f960bcd15a51f3fa4c8dcd4f231 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 07:51:12 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 16fbe16..b67cbce 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -54,7 +54,6 @@ MMSTART(){ SENDNOTICE "Starting Media Management Systems" "Fresh Startup" echo "$(date) - Starting Media Management system - (fresh start)" >> $logfile echo -e "${idsCL[LightCyan]}Fresh Startup${idsCL[Default]}" - # sleep 2m elif [ "${1}" = "check" ] && [ "$(/sbin/ip link | grep "${VPN_INTERFACE}")" = "" ] && [ -f ${MMFOLDER}/mm.vpn* ]; then GOFORSTART=true; @@ -1303,6 +1302,7 @@ if [ ! -f ${MMFOLDER}/mm.update.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]}" fi + echo "HERE: ${action} - ${1} - ${2}" case $action in start | check) if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then @@ -1351,7 +1351,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then echo -en "${idsCL[LightCyan]}Pausing for 30s to get new VPN WAN IP, or press any key to continue with possibly getting a new address ... ${idsCL[Default]}" read -et 30 -n 1 echo -e "${idsCL[Green]}Done${idsCL[Default]}" - MMSTART ${action} vpn + MMSTART ${action} ${rv} ;; status) if [ -f ${MMFOLDER}/mm.stop ]; then