mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Make domain names available to pre hook
Export Le_Domains and Le_Alt so your pre-hook script can run additional checks. Allows running checks on the domain names before the first call to the ACME API. Thereby not counting against the rate-limit when an issue is going to be problematic. Supersedes: #3288
This commit is contained in:
parent
72e3f33f28
commit
e164362069
2
acme.sh
2
acme.sh
@ -3382,6 +3382,8 @@ _on_before_issue() {
|
|||||||
if [ "$_chk_pre_hook" ]; then
|
if [ "$_chk_pre_hook" ]; then
|
||||||
_info "Run pre hook:'$_chk_pre_hook'"
|
_info "Run pre hook:'$_chk_pre_hook'"
|
||||||
if ! (
|
if ! (
|
||||||
|
export Le_Domain="$_chk_main_domain"
|
||||||
|
export Le_Alt="$_chk_alt_domains"
|
||||||
cd "$DOMAIN_PATH" && eval "$_chk_pre_hook"
|
cd "$DOMAIN_PATH" && eval "$_chk_pre_hook"
|
||||||
); then
|
); then
|
||||||
_err "Error when run pre hook."
|
_err "Error when run pre hook."
|
||||||
|
Loading…
Reference in New Issue
Block a user