Update default.inc

This commit is contained in:
2026-06-03 21:53:11 -05:00
parent 51080999d9
commit a4c63c302a
+5 -3
View File
@@ -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}"
}