Update mm-scripts.sh

This commit is contained in:
2023-04-21 21:13:04 -05:00
parent 479c40210b
commit df846bcac5

View File

@@ -884,7 +884,6 @@ MMSETUP(){
fi fi
[ "${EMAIL_NOTICE}" != "" ] && echo "EMAIL_NOTICE=${EMAIL_NOTICE}" >> ${MMFOLDER}/settings.conf || echo "# EMAIL_NOTICE=email@address.com" >> ${MMFOLDER}/settings.conf [ "${EMAIL_NOTICE}" != "" ] && echo "EMAIL_NOTICE=${EMAIL_NOTICE}" >> ${MMFOLDER}/settings.conf || echo "# EMAIL_NOTICE=email@address.com" >> ${MMFOLDER}/settings.conf
echo echo
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
read -n 1 -p "Use previous Pushover App Token [${PUSHOVER_APP_TOKEN}] (Y/n)?" choice read -n 1 -p "Use previous Pushover App Token [${PUSHOVER_APP_TOKEN}] (Y/n)?" choice
case "$choice" in case "$choice" in
@@ -896,7 +895,6 @@ MMSETUP(){
fi fi
[ "${PUSHOVER_APP_TOKEN}" != "" ] && echo "PUSHOVER_APP_TOKEN=${PUSHOVER_APP_TOKEN}" >> ${MMFOLDER}/settings.conf || echo "# PUSHOVER_APP_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf [ "${PUSHOVER_APP_TOKEN}" != "" ] && echo "PUSHOVER_APP_TOKEN=${PUSHOVER_APP_TOKEN}" >> ${MMFOLDER}/settings.conf || echo "# PUSHOVER_APP_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf
echo echo
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
read -n 1 -p "Use previous Pushover User Token [${PUSHOVER_USER_TOKEN}] (Y/n)?" choice read -n 1 -p "Use previous Pushover User Token [${PUSHOVER_USER_TOKEN}] (Y/n)?" choice
@@ -913,8 +911,11 @@ MMSETUP(){
echo "# PUSHOVER_USER_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf echo "# PUSHOVER_USER_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf
fi fi
cat ${MMFOLDER}/settings.conf read -n 1 -p "Do you wish to start services now (y/N)?" choice
case "$choice" in
[Yy]) MMSTART;; esac
# cat ${MMFOLDER}/settings.conf
;; ;;
* ) exit 0;; * ) exit 0;;
esac esac