Update default.inc
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user