From 66792501d5ff4273f45fb1c4df8637f54a6ad3ac Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 30 Sep 2024 17:12:30 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 5e28b05..a6aec4e 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -845,7 +845,7 @@ VPNSPEEDTEST(){ echo -e "${idsCL[Green]}VPN Speedtest Comparison${idsCL[Default]}" DIVIDER . lightGreen echo - if [ ! -f ${TMPFOLDER}/mm.stop ]; then + if [ ! -f ${TMPFOLDER}/mm.stop ] && [ "${SERVICESCHECK}" != "" ]; then echo -en "${idsCL[LightCyan]}This requires all media management services to be stopped, ok (Y/n)? ${idsCL[Default]}" read -n 1 choice case "$choice" in @@ -862,7 +862,7 @@ VPNSPEEDTEST(){ echo -e "${idsCL[Green]}Running test without VPN${idsCL[Default]}" DIVIDER . green # speedtest -s 17462 - speedtest + speedtest -s 47744 echo echo -en "${idsCL[LightCyan]}Starting vpn ... ${idsCL[Default]}" @@ -877,7 +877,7 @@ VPNSPEEDTEST(){ echo -e "${idsCL[Green]}Running test with VPN${idsCL[Default]}" DIVIDER . green # speedtest -s 17462 - speedtest + speedtest -s 47744 echo echo -en "${idsCL[LightCyan]}Stopping vpn ... ${idsCL[Default]}" @@ -885,14 +885,16 @@ VPNSPEEDTEST(){ MMSTOP >/dev/null 2>&1 echo -e "${idsCL[Green]}Done${idsCL[Default]}" - echo - echo -en "${idsCL[LightCyan]}Would you like to start media management services (y/N)? ${idsCL[Default]}" - read -n 1 choice - echo - case "$choice" in - [Yy]) MMSTART start;; - * ) echo -e "${idsCL[Cyan]}Not starting. To start, run the command '${idsCL[Green]}mm start${idsCL[LightCyan]}'${idsCL[Default]}";echo;echo;; - esac + if [ "${SERVICESCHECK}" != "" ]; then + echo + echo -en "${idsCL[LightCyan]}Would you like to start media management services (y/N)? ${idsCL[Default]}" + read -n 1 choice + echo + case "$choice" in + [Yy]) MMSTART start;; + * ) echo -e "${idsCL[Cyan]}Not starting. To start, run the command '${idsCL[Green]}mm start${idsCL[LightCyan]}'${idsCL[Default]}";echo;echo;; + esac + fi } UPDATESERVICE(){