Update mm-scripts.sh

This commit is contained in:
2024-09-30 17:12:30 -05:00
parent 006563cae5
commit 66792501d5

View File

@@ -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(){