Update mm-scripts.sh

This commit is contained in:
2023-07-08 21:37:30 -05:00
parent 7e8ae415ce
commit 19edac475c

View File

@@ -1191,23 +1191,23 @@ MMSETUP(){
case "$choice" in case "$choice" in
[Yy]) [Yy])
echo echo
echo -en "${idsCL[LightCyan]}Resetting config ... ${idsCL[Default]}" # echo -en "${idsCL[LightCyan]}Resetting config ... ${idsCL[Default]}"
#
#sed -i '/^$/d' ${MMFOLDER}/settings.conf # #sed -i '/^$/d' ${MMFOLDER}/settings.conf
echo -e "${idsCL[Green]}Done${idsCL[Default]}" # echo -e "${idsCL[Green]}Done${idsCL[Default]}"
if [ "${SERVICESCHECK}" != "" ]; then # if [ "${SERVICESCHECK}" != "" ]; then
echo # echo
srvcs2=${SERVICESCHECK/snap.tautulli.tautulli/tautulli} # srvcs2=${SERVICESCHECK/snap.tautulli.tautulli/tautulli}
srvcs2=${srvcs2/snap.overseerr.daemon/overseerr} # srvcs2=${srvcs2/snap.overseerr.daemon/overseerr}
echo -e "${idsCL[LightCyan]}Run previous media management services${idsCL[Default]}" # 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]}" # echo -en "${idsCL[LightYellow]}['${idsCL[White]}${srvcs2}${idsCL[LightYellow]}']${idsCL[LightCyan]} (Y/n)? ${idsCL[Default]}"
read -n 1 choice # read -n 1 choice
case "$choice" in # case "$choice" in
[Nn]) SERVICESCHECK="";; # [Nn]) SERVICESCHECK="";;
* ) srvcs=${srvcs2};;esac # * ) srvcs=${srvcs2};;esac
fi # fi
if [ "${SERVICESCHECK}" == "" ] && [ "${srvcs}" == "" ]; then # if [ "${SERVICESCHECK}" == "" ] && [ "${srvcs}" == "" ]; then
export NEWT_COLORS='' export NEWT_COLORS=''
srvcs=$(whiptail --title "Media Manager Service Selector" --checklist --separate-output \ srvcs=$(whiptail --title "Media Manager Service Selector" --checklist --separate-output \
"\nPlease select which services to enable for this system:" 0 70 16 \ "\nPlease select which services to enable for this system:" 0 70 16 \
@@ -1224,7 +1224,7 @@ MMSETUP(){
"sonarr" "Sonarr (TV Show Manager)" ON \ "sonarr" "Sonarr (TV Show Manager)" ON \
"tautulli" "Tautulli (Plex Stats)" ON 3>&1 1>&2 2>&3) "tautulli" "Tautulli (Plex Stats)" ON 3>&1 1>&2 2>&3)
exitstatus=$?; srvcs="$(join_by , $srvcs)"; exitstatus=$?; srvcs="$(join_by , $srvcs)";
fi # fi
echo echo
echo -e "${idsCL[LightCyan]}Selected services: ${idsCL[Green]}${srvcs}${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Selected services: ${idsCL[Green]}${srvcs}${idsCL[Default]}"