mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-09 15:42:43 +00:00
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:
parent
258ca1b434
commit
92fd269c1d
4
acme.sh
4
acme.sh
@ -4006,6 +4006,10 @@ issue() {
|
|||||||
Le_NextRenewTime=$(_math "$Le_NextRenewTime" - 86400)
|
Le_NextRenewTime=$(_math "$Le_NextRenewTime" - 86400)
|
||||||
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
|
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
|
||||||
|
|
||||||
|
_initpath "$_main_domain" "$_ecc"
|
||||||
|
|
||||||
|
. "$DOMAIN_CONF"
|
||||||
|
|
||||||
_on_issue_success "$_post_hook" "$_renew_hook"
|
_on_issue_success "$_post_hook" "$_renew_hook"
|
||||||
|
|
||||||
if [ "$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain" ]; then
|
if [ "$_real_cert$_real_key$_real_ca$_reload_cmd$_real_fullchain" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user