emulate certbot hooks environment variables

This commit is contained in:
Jérémy Lecour 2020-11-19 21:18:23 +01:00 committed by Jérémy Lecour
parent 86e64187cc
commit b52d983754
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,8 @@ This project does not follow semantic versioning.
### Added
* emulate certbot hooks environment variables
### Changed
### Deprecated

View file

@ -284,6 +284,10 @@ main() {
export EVOACME_CHAIN="${LIVE_CHAIN}"
export EVOACME_FULLCHAIN="${LIVE_FULLCHAIN}"
# emulate certbot hooks environment variables
export RENEWED_LINEAGE="${LIVE_CHAIN}"
export RENEWED_DOMAINS="${VHOST}"
# search for files in hooks directory
for hook in $(find ${HOOKS_DIR} -type f -executable | sort); do
set +e