Skip to content

Commit

Permalink
Fix granular webhook payloads in 00-webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinkscape authored Jun 19, 2024
1 parent 7812894 commit cf5f0ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hooks/00-webhook
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ case "${ACTION}" in
curl --request POST \
--url "${WEBHOOK_PRE_BACKUP_URL}" \
--header 'Content-Type: application/json' \
--data '{"status": "error"}' \
--data '{"status": "pre-backup"}' \
--max-time 10 \
--retry 5 \
${WEBHOOK_EXTRA_ARGS}
Expand All @@ -66,11 +66,10 @@ case "${ACTION}" in
curl --request POST \
--url "${WEBHOOK_POST_BACKUP_URL}" \
--header 'Content-Type: application/json' \
--data '{"status": "error"}' \
--data '{"status": "post-backup"}' \
--max-time 10 \
--retry 5 \
${WEBHOOK_EXTRA_ARGS}
fi
;;
esac

0 comments on commit cf5f0ad

Please sign in to comment.