Update default.inc
This commit is contained in:
+5
-3
@@ -255,8 +255,10 @@ CHECK_HOST(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
PUSH_TO_MOBILE(){
|
PUSH_TO_MOBILE(){
|
||||||
MESSAGE=$1
|
MESSAGE=${1}
|
||||||
TITLE=$2
|
TITLE=${2}
|
||||||
|
[ "${3}" != "" ] && PATOKEN=${3} || PATOKEN=${PUSHOVER_APP_TOKEN}
|
||||||
|
[ "${4}" != "" ] && PUTOKEN=${4} || PUTOKEN=${PUSHOVER_USER_TOKEN}
|
||||||
if [ "$3" = "2" ]; then
|
if [ "$3" = "2" ]; then
|
||||||
PRIORITY="${3}&retry=60&expire=600"
|
PRIORITY="${3}&retry=60&expire=600"
|
||||||
MSGSOUND=alien
|
MSGSOUND=alien
|
||||||
@@ -273,7 +275,7 @@ PUSH_TO_MOBILE(){
|
|||||||
elif [ "${MSGSOUND}" = "" ]; then
|
elif [ "${MSGSOUND}" = "" ]; then
|
||||||
MSGSOUND=classical
|
MSGSOUND=classical
|
||||||
fi
|
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}"
|
# 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}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user