Update mm-scripts.sh

This commit is contained in:
2023-04-22 17:52:44 -05:00
parent e4158d1e4d
commit f78f4dab65

View File

@@ -1018,7 +1018,15 @@ MMSETUP(){
exitstatus=$?; srvcs="$(join_by , $srvcs)";
fi
[ "${srvcs}" != "" ] && srvcs=${srvcs/tautulli/snap.tautulli.tautulli} && echo -e "\nSERVICESCHECK=${srvcs}\n\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf || echo -e "\n# SERVICESCHECK=\n\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf
if [ "${srvcs}" != "" ]; then
echo -e "${idsCL[LightCyan]}Selected services: ${idsCL[Green]}${srvcs}${idsCL[Default]}"
srvcs=${srvcs/tautulli/snap.tautulli.tautulli}
echo -e "\nSERVICESCHECK=${srvcs}\n\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf
echo
else
echo -e "\n# SERVICESCHECK=\n\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf
fi
echo
echo -e "${idsCL[LightCyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}"