fixed error
This commit is contained in:
parent
3ffde7807f
commit
0501d23303
2 changed files with 5 additions and 4 deletions
|
|
@ -419,8 +419,9 @@ SLACK_USERNAME="duplicity-backup"
|
||||||
SLACK_EMOJI="package"
|
SLACK_EMOJI="package"
|
||||||
|
|
||||||
# Provider: Pushover
|
# Provider: Pushover
|
||||||
PUSHOVER_TOKEN="token" # App token generated at pushover.net
|
PUSHOVER_TOKEN="" # App token generated at pushover.net
|
||||||
PUSHOVER_USER="userkey" # User key from pushover.net
|
PUSHOVER_USER="" # User key from pushover.net
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# TROUBLESHOOTING
|
# TROUBLESHOOTING
|
||||||
|
|
|
||||||
|
|
@ -413,8 +413,8 @@ send_notification()
|
||||||
echo -e "Slack notification sent to channel ${SLACK_CHANNEL}" >> "${LOGFILE}"
|
echo -e "Slack notification sent to channel ${SLACK_CHANNEL}" >> "${LOGFILE}"
|
||||||
elif [ "${NOTIFICATION_SERVICE}" = "pushover" ]; then
|
elif [ "${NOTIFICATION_SERVICE}" = "pushover" ]; then
|
||||||
curl -s \
|
curl -s \
|
||||||
-F "token=APP_TOKEN" \
|
-F "token=${PUSHOVER_TOKEN}" \
|
||||||
-F "user=USER_KEY" \
|
-F "user=${PUSHOVER_USER}" \
|
||||||
-F "message=${NOTIFICATION_CONTENT}" \
|
-F "message=${NOTIFICATION_CONTENT}" \
|
||||||
https://api.pushover.net/1/messages
|
https://api.pushover.net/1/messages
|
||||||
echo -e "Pushover notification sent" >> "${LOGFILE}"
|
echo -e "Pushover notification sent" >> "${LOGFILE}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue