Browse Source

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.
pull/1000/head
Fabian Niepelt 8 years ago
parent
commit
92fd269c1d
  1. 4
      acme.sh

4
acme.sh

@ -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

Loading…
Cancel
Save