| 123456789101112131415161718192021 |
- #!/bin/bash
- # LinuxGSM alert_pushover.sh function
- # Author: Daniel Gibbs
- # Website: https://gameservermanagers.com
- # Description: Sends Pushover alert.
- local commandname="ALERT"
- local commandaction="Alert"
- local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
- json=$(cat <<EOF
- {
- "token": "KzGDORePKggMaC0QOYAMyEEuzJnyUi",
- "user": "e9e1495ec75826de5983cd1abc8031",
- "device": "all",
- "title": "Backup finished - SQL1",
- "message": "TEST"
- EOF
- )
- curl -sSL -H "Content-Type: application/json" -X POST -d """${json}""" "https://api.pushover.net/1/messages.json"
|