Update default.inc

This commit is contained in:
2023-03-18 22:45:16 -05:00
parent 18ff44116e
commit d993acf998

View File

@@ -187,14 +187,19 @@ CHECK_HOST(){
push_to_mobile(){
MESSAGE=$1
TITLE=$2
MSGSOUND=classical
if [ "$3" = "2" ]; then
PRIORITY="${3}&retry=60&expire=600"
MSGSOUND=alien
elif [ "$3" = "1" ]; then
PRIORITY="${3}"
MSGSOUND=siren
elif [ "$3" != "" ]; then
PRIORITY=$3
else
PRIORITY=0
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" -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 &
}