From f14173c9188adcb36bd1939a576a207c7dcdd6a8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 7 Feb 2024 09:34:35 -0600 Subject: [PATCH] Update default.inc --- default.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/default.inc b/default.inc index f1bfc98..9c02b2a 100755 --- a/default.inc +++ b/default.inc @@ -248,7 +248,6 @@ CHECK_HOST(){ PUSH_TO_MOBILE(){ MESSAGE=$1 TITLE=$2 - MSGSOUND=classical if [ "$3" = "2" ]; then PRIORITY="${3}&retry=60&expire=600" MSGSOUND=alien @@ -260,6 +259,11 @@ PUSH_TO_MOBILE(){ else PRIORITY=0 fi + if [ "${4}" != "" ]; then + MSGSOUND=${4} + 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}" -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}"