Read domain config before doing post-hook after first issue

When issuing a certificate for the first time, $Le_Domain is not
available to the hooks. By reading the final domain config before
doing the hooks, they will get all the variables they get when
renewing.
This commit is contained in:
Fabian Niepelt 2017-09-01 13:44:10 +02:00
parent 258ca1b434
commit 92fd269c1d

View File

@ -4006,6 +4006,10 @@ issue() {
Le_NextRenewTime=$(_math "$Le_NextRenewTime" - 86400)
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
_initpath "$_main_domain" "$_ecc"
. "$DOMAIN_CONF"
_on_issue_success "$_post_hook" "$_renew_hook"
if [ "$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain" ]; then