Update mm-scripts.sh

This commit is contained in:
2023-04-27 07:51:12 -05:00
parent 710119dcef
commit 6e45cd96a1

View File

@@ -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