Update default.inc

This commit is contained in:
2024-02-07 09:34:35 -06:00
parent 2b53a4f7a7
commit f14173c918

View File

@@ -248,7 +248,6 @@ CHECK_HOST(){
PUSH_TO_MOBILE(){ PUSH_TO_MOBILE(){
MESSAGE=$1 MESSAGE=$1
TITLE=$2 TITLE=$2
MSGSOUND=classical
if [ "$3" = "2" ]; then if [ "$3" = "2" ]; then
PRIORITY="${3}&retry=60&expire=600" PRIORITY="${3}&retry=60&expire=600"
MSGSOUND=alien MSGSOUND=alien
@@ -260,6 +259,11 @@ PUSH_TO_MOBILE(){
else else
PRIORITY=0 PRIORITY=0
fi 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 & 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}" # 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}" # 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}"