Update mm-scripts.sh
This commit is contained in:
@@ -841,6 +841,18 @@ SHOWSRVCUPDATES(){
|
|||||||
|
|
||||||
MMSETUP(){
|
MMSETUP(){
|
||||||
echo -e "${idsCL[Green]}Media Manager Setup Scripts${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Media Manager Setup Scripts${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
read -n 1 -p "This will reset the config, do you wish to continue (y/N)?" choice
|
||||||
|
case "$choice" in
|
||||||
|
[Yy])
|
||||||
|
echo
|
||||||
|
echo -en "${idsCL[LightCyan]}Resetting config ... ${idsCL[Default]}"
|
||||||
|
sed -i '/SERVICESCHECK/d' ${MMFOLDER}/settings.conf
|
||||||
|
sed -i '/PUSHOVER_/d' ${MMFOLDER}/settings.conf
|
||||||
|
sed -i '/EMAIL_NOTICE/d' ${MMFOLDER}/settings.conf
|
||||||
|
sed -i '/OPTIONAL/d' ${MMFOLDER}/settings.conf
|
||||||
|
sed -i '/##/d' ${MMFOLDER}/settings.conf
|
||||||
|
echo -e "${idsCL[Green]}Done${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 \
|
||||||
@@ -855,7 +867,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)"; srvcs=${srvcs/tautulli/snap.tautulli.tautulli}
|
exitstatus=$?; srvcs="$(join_by , $srvcs)"; srvcs=${srvcs/tautulli/snap.tautulli.tautulli}
|
||||||
echo -e "SERVICESCHECK=${srvcs}\n\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf
|
echo -e "##\nSERVICESCHECK=${srvcs}\n##\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightCyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}"
|
||||||
@@ -879,6 +891,10 @@ MMSETUP(){
|
|||||||
|
|
||||||
cat ${MMFOLDER}/settings.conf
|
cat ${MMFOLDER}/settings.conf
|
||||||
|
|
||||||
|
;;
|
||||||
|
* ) exit 0;;
|
||||||
|
|
||||||
|
|
||||||
# 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