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
[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]}"