From a4c63c302a32231a40867bf6c77b63129d272406 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 3 Jun 2026 21:53:11 -0500 Subject: [PATCH] Update default.inc --- default.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/default.inc b/default.inc index 9ca2bf8..b697c47 100755 --- a/default.inc +++ b/default.inc @@ -255,8 +255,10 @@ CHECK_HOST(){ } PUSH_TO_MOBILE(){ - MESSAGE=$1 - TITLE=$2 + MESSAGE=${1} + TITLE=${2} + [ "${3}" != "" ] && PATOKEN=${3} || PATOKEN=${PUSHOVER_APP_TOKEN} + [ "${4}" != "" ] && PUTOKEN=${4} || PUTOKEN=${PUSHOVER_USER_TOKEN} if [ "$3" = "2" ]; then PRIORITY="${3}&retry=60&expire=600" MSGSOUND=alien @@ -273,7 +275,7 @@ PUSH_TO_MOBILE(){ elif [ "${MSGSOUND}" = "" ]; then MSGSOUND=classical fi - wget https://api.pushover.net/1/messages.json --post-data="token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}&monospace=1" -qO- > /dev/null 2>&1 & + wget https://api.pushover.net/1/messages.json --post-data="token=${PATOKEN}&user=${PUTOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}&monospace=1" -qO- > /dev/null 2>&1 & # echo "token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}" # wget https://api.pushover.net/1/messages.json --post-data="token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}" }