Browse Source

Merge pull request #3657 from Sp1l/extend_pre_hook

Make domain names available to pre hook
pull/3682/head
neil 3 years ago
committed by GitHub
parent
commit
b335840f97
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 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…
Cancel
Save