From 211190581ecce27160958b1bf02ce6caf1c51600 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 21 Apr 2023 20:06:23 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 560d91c..e3551d6 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -840,6 +840,8 @@ SHOWSRVCUPDATES(){ } MMSETUP(){ + echo -e "${idsCL[Green]}Media Manager Setup Scripts${idsCL[Default]}" + 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 \ @@ -853,10 +855,26 @@ MMSETUP(){ "sonarr" "Sonarr (TV Show Manager)" ON \ "tautulli" "Tautulli (Plex Stats)" ON 3>&1 1>&2 2>&3) exitstatus=$?; srvcs="$(join_by , $srvcs)"; srvcs=${srvcs/tautulli/snap.tautulli.tautulli} + echo "SERVICESCHECK=${srvcs}" >> ${MMFOLDER}/settings.conf - echo $srvcs + echo + echo -e "${idsCL[LightCyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}" + echo + echo -e -n "${idsCL[LightCyan]}(optional) SMTP notification address: ${idsCL[Default]}" + read -e smtpaddress + echo "" + echo -e -n "${idsCL[LightCyan]}(optional) Pushover App Token: ${idsCL[Default]}" + read -e PUSHOVER_APP_TOKEN + echo -e -n "${idsCL[LightCyan]}(optional) Pushover User Token: ${idsCL[Default]}" + read -e PUSHOVER_USER_TOKEN + echo + echo -e "PUSHOVER_APP_TOKEN=\"${PUSHOVER_APP_TOKEN}\" +PUSHOVER_USER_TOKEN=\"${PUSHOVER_USER_TOKEN}\" >> ${MMFOLDER}/settings.conf +" + cat ${MMFOLDER}/settings.conf + # sed -e 's;%NIP%;${nip};g' ${MMFOLDER}/settings.conf > ${MMFOLDER}/settings.conf