From 19edac475c936423e29cd7c77e79914eb004e7b3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 8 Jul 2023 21:37:30 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 1d0346e..3672e57 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1191,23 +1191,23 @@ MMSETUP(){ case "$choice" in [Yy]) echo - echo -en "${idsCL[LightCyan]}Resetting config ... ${idsCL[Default]}" - - #sed -i '/^$/d' ${MMFOLDER}/settings.conf - echo -e "${idsCL[Green]}Done${idsCL[Default]}" + # echo -en "${idsCL[LightCyan]}Resetting config ... ${idsCL[Default]}" + # + # #sed -i '/^$/d' ${MMFOLDER}/settings.conf + # echo -e "${idsCL[Green]}Done${idsCL[Default]}" - if [ "${SERVICESCHECK}" != "" ]; then - echo - srvcs2=${SERVICESCHECK/snap.tautulli.tautulli/tautulli} - srvcs2=${srvcs2/snap.overseerr.daemon/overseerr} - echo -e "${idsCL[LightCyan]}Run previous media management services${idsCL[Default]}" - echo -en "${idsCL[LightYellow]}['${idsCL[White]}${srvcs2}${idsCL[LightYellow]}']${idsCL[LightCyan]} (Y/n)? ${idsCL[Default]}" - read -n 1 choice - case "$choice" in - [Nn]) SERVICESCHECK="";; - * ) srvcs=${srvcs2};;esac - fi - if [ "${SERVICESCHECK}" == "" ] && [ "${srvcs}" == "" ]; then + # if [ "${SERVICESCHECK}" != "" ]; then + # echo + # srvcs2=${SERVICESCHECK/snap.tautulli.tautulli/tautulli} + # srvcs2=${srvcs2/snap.overseerr.daemon/overseerr} + # echo -e "${idsCL[LightCyan]}Run previous media management services${idsCL[Default]}" + # echo -en "${idsCL[LightYellow]}['${idsCL[White]}${srvcs2}${idsCL[LightYellow]}']${idsCL[LightCyan]} (Y/n)? ${idsCL[Default]}" + # read -n 1 choice + # case "$choice" in + # [Nn]) SERVICESCHECK="";; + # * ) srvcs=${srvcs2};;esac + # fi + # if [ "${SERVICESCHECK}" == "" ] && [ "${srvcs}" == "" ]; then export NEWT_COLORS='' srvcs=$(whiptail --title "Media Manager Service Selector" --checklist --separate-output \ "\nPlease select which services to enable for this system:" 0 70 16 \ @@ -1224,7 +1224,7 @@ MMSETUP(){ "sonarr" "Sonarr (TV Show Manager)" ON \ "tautulli" "Tautulli (Plex Stats)" ON 3>&1 1>&2 2>&3) exitstatus=$?; srvcs="$(join_by , $srvcs)"; - fi + # fi echo echo -e "${idsCL[LightCyan]}Selected services: ${idsCL[Green]}${srvcs}${idsCL[Default]}"