From 004272f012928624f1c3b3c5104f625ea2ab0b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Dr=C3=B6=C3=9Fler?= Date: Tue, 26 Feb 2019 11:35:46 +0100 Subject: [PATCH] allow overriding renew-hook config option with commandline parameter when running cron/renew --- acme.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/acme.sh b/acme.sh index 93112a1a..b64531fe 100755 --- a/acme.sh +++ b/acme.sh @@ -4461,6 +4461,11 @@ renew() { return 0 fi + # allow overriding domain-config + if [ -n "$_renew_hook" ]; then + Le_RenewHook="$_renew_hook" + fi + IS_RENEW="1" issue "$Le_Webroot" "$Le_Domain" "$Le_Alt" "$Le_Keylength" "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" "$Le_PreHook" "$Le_PostHook" "$Le_RenewHook" "$Le_LocalAddress" "$Le_ChallengeAlias" res="$?"