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]}" echo -e "${idsCL[Green]}VPN Speedtest Comparison${idsCL[Default]}"
DIVIDER . lightGreen DIVIDER . lightGreen
echo 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]}" echo -en "${idsCL[LightCyan]}This requires all media management services to be stopped, ok (Y/n)? ${idsCL[Default]}"
read -n 1 choice read -n 1 choice
case "$choice" in case "$choice" in
@@ -862,7 +862,7 @@ VPNSPEEDTEST(){
echo -e "${idsCL[Green]}Running test without VPN${idsCL[Default]}" echo -e "${idsCL[Green]}Running test without VPN${idsCL[Default]}"
DIVIDER . green DIVIDER . green
# speedtest -s 17462 # speedtest -s 17462
speedtest speedtest -s 47744
echo echo
echo -en "${idsCL[LightCyan]}Starting vpn ... ${idsCL[Default]}" echo -en "${idsCL[LightCyan]}Starting vpn ... ${idsCL[Default]}"
@@ -877,7 +877,7 @@ VPNSPEEDTEST(){
echo -e "${idsCL[Green]}Running test with VPN${idsCL[Default]}" echo -e "${idsCL[Green]}Running test with VPN${idsCL[Default]}"
DIVIDER . green DIVIDER . green
# speedtest -s 17462 # speedtest -s 17462
speedtest speedtest -s 47744
echo echo
echo -en "${idsCL[LightCyan]}Stopping vpn ... ${idsCL[Default]}" echo -en "${idsCL[LightCyan]}Stopping vpn ... ${idsCL[Default]}"
@@ -885,14 +885,16 @@ VPNSPEEDTEST(){
MMSTOP >/dev/null 2>&1 MMSTOP >/dev/null 2>&1
echo -e "${idsCL[Green]}Done${idsCL[Default]}" echo -e "${idsCL[Green]}Done${idsCL[Default]}"
echo if [ "${SERVICESCHECK}" != "" ]; then
echo -en "${idsCL[LightCyan]}Would you like to start media management services (y/N)? ${idsCL[Default]}" echo
read -n 1 choice echo -en "${idsCL[LightCyan]}Would you like to start media management services (y/N)? ${idsCL[Default]}"
echo read -n 1 choice
case "$choice" in echo
[Yy]) MMSTART start;; case "$choice" in
* ) echo -e "${idsCL[Cyan]}Not starting. To start, run the command '${idsCL[Green]}mm start${idsCL[LightCyan]}'${idsCL[Default]}";echo;echo;; [Yy]) MMSTART start;;
esac * ) echo -e "${idsCL[Cyan]}Not starting. To start, run the command '${idsCL[Green]}mm start${idsCL[LightCyan]}'${idsCL[Default]}";echo;echo;;
esac
fi
} }
UPDATESERVICE(){ UPDATESERVICE(){