Update mm-scripts.sh
This commit is contained in:
@@ -840,6 +840,8 @@ SHOWSRVCUPDATES(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
MMSETUP(){
|
MMSETUP(){
|
||||||
|
echo -e "${idsCL[Green]}Media Manager Setup Scripts${idsCL[Default]}"
|
||||||
|
|
||||||
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 \
|
||||||
@@ -853,10 +855,26 @@ 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)"; srvcs=${srvcs/tautulli/snap.tautulli.tautulli}
|
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
|
# sed -e 's;%NIP%;${nip};g' ${MMFOLDER}/settings.conf > ${MMFOLDER}/settings.conf
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user