Update mm-scripts.sh

This commit is contained in:
2023-04-29 23:00:21 -05:00
parent 214eb1f60c
commit 07963cd60e

View File

@@ -1182,16 +1182,19 @@ MMSETUP(){
case "$choice" in
[Yy])
echo
echo -e "${idsCL[LightCyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}"
echo
echo -e "${idsCL[Cyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}"
echo
if [ "${EMAIL_NOTICE}" != "" ]; then
echo -en "${idsCL[LightYellow]}Use previous email address [${idsCL[White]}${EMAIL_NOTICE}${idsCL[LightYellow]}] (Y/n)? ${idsCL[Default]}"
read -n 1 choice
case "$choice" in
[Nn]) EMAIL_NOTICE="";;esac
[Nn]) EMAIL_NOTICE="";;
esac
echo
fi
if [ "${EMAIL_NOTICE}" == "" ]; then
echo; echo -e -n "${idsCL[LightYellow]}(optional) Email notification address: ${idsCL[Default]}"
echo -e -n "${idsCL[LightYellow]}(optional) Email notification address: ${idsCL[Default]}"
read -e EMAIL_NOTICE
fi
@@ -1200,10 +1203,12 @@ MMSETUP(){
echo -en "${idsCL[LightYellow]}Use previous Pushover App Token [${idsCL[White]}${PUSHOVER_APP_TOKEN}${idsCL[LightYellow]}] (Y/n)? ${idsCL[Default]}"
read -n 1 choice
case "$choice" in
[Nn]) PUSHOVER_APP_TOKEN="";;esac
[Nn]) PUSHOVER_APP_TOKEN="";;
esac
echo
fi
if [ "${PUSHOVER_APP_TOKEN}" == "" ]; then
echo; echo -e -n "${idsCL[LightYellow]}(optional) Pushover App Token: ${idsCL[Default]}"
echo -e -n "${idsCL[LightYellow]}(optional) Pushover App Token: ${idsCL[Default]}"
read -e PUSHOVER_APP_TOKEN
fi
@@ -1213,10 +1218,12 @@ MMSETUP(){
echo -en "${idsCL[LightYellow]}Use previous Pushover User Token [${idsCL[White]}${PUSHOVER_USER_TOKEN}${idsCL[LightYellow]}] (Y/n)? ${idsCL[Default]}"
read -n 1 choice
case "$choice" in
[Nn]) PUSHOVER_USER_TOKEN="";;esac
[Nn]) PUSHOVER_USER_TOKEN="";;
esac
echo
fi
if [ "${PUSHOVER_USER_TOKEN}" == "" ]; then
echo; echo -e -n "${idsCL[LightYellow]}(optional) Pushover User Token: ${idsCL[Default]}"
echo -e -n "${idsCL[LightYellow]}(optional) Pushover User Token: ${idsCL[Default]}"
read -e PUSHOVER_USER_TOKEN
fi
echo