Browse Source

Removing pushjet for now as more complex

Could return to this if there is demand
pull/1601/head
Daniel Gibbs 8 years ago
parent
commit
2e8feaedcb
  1. 21
      lgsm/functions/alert_pushjet.sh

21
lgsm/functions/alert_pushjet.sh

@ -1,21 +0,0 @@
#!/bin/bash
# LinuxGSM alert_pushjet.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
# Description: Sends Pushjet alert.
local commandname="ALERT"
local commandaction="Alert"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
json=$(cat <<EOF
{
"secret": "${pushjettoken}",
"level": "5",
"message": "all",
"link": "https://gameservermanagers.com"
}
EOF
)
curl -sSL -H "Content-Type: application/json" -X POST -d """${json}""" "https://api.pushover.net/1/messages.json"
Loading…
Cancel
Save