From cf5f0ada3b39cfdfa33c7b61a96f19e14a7ee307 Mon Sep 17 00:00:00 2001 From: Arthur Bodera Date: Wed, 19 Jun 2024 10:14:06 +1000 Subject: [PATCH] Fix granular webhook payloads in 00-webhook --- hooks/00-webhook | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hooks/00-webhook b/hooks/00-webhook index f6a9b33..08950e2 100755 --- a/hooks/00-webhook +++ b/hooks/00-webhook @@ -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} @@ -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 -