From b52d98375435bb781ad030624477b174f39b3382 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 19 Nov 2020 21:18:23 +0100 Subject: [PATCH] emulate certbot hooks environment variables --- CHANGELOG.md | 2 ++ evoacme.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3507c0..f9884df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ This project does not follow semantic versioning. ### Added +* emulate certbot hooks environment variables + ### Changed ### Deprecated diff --git a/evoacme.sh b/evoacme.sh index 12c4ba4..689c5af 100755 --- a/evoacme.sh +++ b/evoacme.sh @@ -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