0501d2330361ae41a2f5ad30951a2c50c899349b

Author
sean <sean@sean-debian>
Committer
sean <sean@sean-debian>
Date

Message

fixed error

Diff

 1diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example
 2index 9aaccd6a1b2ec1d22697bbeb8369b3c1c6fad0f6..217381fed3a48f764317f6a18e9618cbdf1c3237 100644
 3--- a/duplicity-backup.conf.example
 4+++ b/duplicity-backup.conf.example
 5@@ -419,8 +419,9 @@ SLACK_USERNAME="duplicity-backup"
 6 SLACK_EMOJI="package"
 7 
 8 # Provider: Pushover
 9-PUSHOVER_TOKEN="token" # App token generated at pushover.net
10-PUSHOVER_USER="userkey" # User key from pushover.net
11+PUSHOVER_TOKEN="" # App token generated at pushover.net
12+PUSHOVER_USER="" # User key from pushover.net
13+
14 
15 # ------------------------------------------------------------------------------
16 # TROUBLESHOOTING
17diff --git a/duplicity-backup.sh b/duplicity-backup.sh
18index 4855828f8b721d05a2268fb04f7de3c18d21cf93..62aadb837a05f508c52cc92f4819c7fa871e99f2 100755
19--- a/duplicity-backup.sh
20+++ b/duplicity-backup.sh
21@@ -413,8 +413,8 @@ send_notification()
22       echo -e "Slack notification sent to channel ${SLACK_CHANNEL}" >> "${LOGFILE}"
23     elif [ "${NOTIFICATION_SERVICE}" = "pushover" ]; then
24       curl -s \
25-      -F "token=APP_TOKEN" \
26-      -F "user=USER_KEY" \
27+      -F "token=${PUSHOVER_TOKEN}" \
28+      -F "user=${PUSHOVER_USER}" \
29       -F "message=${NOTIFICATION_CONTENT}" \
30       https://api.pushover.net/1/messages
31       echo -e "Pushover notification sent" >> "${LOGFILE}"