1
0
Fork 0
mirror of https://github.com/yavook/kiwi-backup.git synced 2024-11-22 15:03:01 +00:00

Merge branch 'release/0.11'

This commit is contained in:
Jörn-Michael Miehe 2022-10-12 11:13:53 +02:00
commit aec18b0839
2 changed files with 17 additions and 0 deletions

View file

@ -162,6 +162,12 @@ backup:
# Additional options for "duplicity remove-all-inc-of-but-n-full" command # Additional options for "duplicity remove-all-inc-of-but-n-full" command
OPTIONS_RMINCR: "" OPTIONS_RMINCR: ""
# Webhook to be pinged on action (use "%%MSG%%" as a placeholder for a message)
WEBHOOK_URL: ""
# Allow self-signed certificates on webhook target
WEBHOOK_INSECURE: "0"
``` ```
## Encryption ## Encryption

View file

@ -19,6 +19,17 @@ if [ -n "${GPG_PASSPHRASE}" ]; then
unset GPG_PASSPHRASE unset GPG_PASSPHRASE
fi fi
# run webhook
if [ -n "${WEBHOOK_URL}" ]; then
wget_args=""
if [ "${WEBHOOK_INSECURE}" = "1" ]; then
wget_args="--no-check-certificate"
fi
WEBHOOK_URL="$(echo "${WEBHOOK_URL}" | sed "s,%%MSG%%,running task ${*},g" )"
wget -O /dev/null ${wget_args} "${WEBHOOK_URL}"
fi
# hand over # hand over
set -ex set -ex
exec $( \ exec $( \