Update mm-scripts.sh
This commit is contained in:
@@ -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
|
||||||
|
# echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
|
||||||
#sed -i '/^$/d' ${MMFOLDER}/settings.conf
|
# if [ "${SERVICESCHECK}" != "" ]; then
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
# echo
|
||||||
|
# srvcs2=${SERVICESCHECK/snap.tautulli.tautulli/tautulli}
|
||||||
if [ "${SERVICESCHECK}" != "" ]; then
|
# srvcs2=${srvcs2/snap.overseerr.daemon/overseerr}
|
||||||
echo
|
# echo -e "${idsCL[LightCyan]}Run previous media management services${idsCL[Default]}"
|
||||||
srvcs2=${SERVICESCHECK/snap.tautulli.tautulli/tautulli}
|
# echo -en "${idsCL[LightYellow]}['${idsCL[White]}${srvcs2}${idsCL[LightYellow]}']${idsCL[LightCyan]} (Y/n)? ${idsCL[Default]}"
|
||||||
srvcs2=${srvcs2/snap.overseerr.daemon/overseerr}
|
# read -n 1 choice
|
||||||
echo -e "${idsCL[LightCyan]}Run previous media management services${idsCL[Default]}"
|
# case "$choice" in
|
||||||
echo -en "${idsCL[LightYellow]}['${idsCL[White]}${srvcs2}${idsCL[LightYellow]}']${idsCL[LightCyan]} (Y/n)? ${idsCL[Default]}"
|
# [Nn]) SERVICESCHECK="";;
|
||||||
read -n 1 choice
|
# * ) srvcs=${srvcs2};;esac
|
||||||
case "$choice" in
|
# fi
|
||||||
[Nn]) SERVICESCHECK="";;
|
# if [ "${SERVICESCHECK}" == "" ] && [ "${srvcs}" == "" ]; then
|
||||||
* ) srvcs=${srvcs2};;esac
|
|
||||||
fi
|
|
||||||
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]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user