2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-09-02 15:25:26 +00:00

Merge pull request #3657 from Sp1l/extend_pre_hook

Make domain names available to pre hook
This commit is contained in:
neil
2021-08-22 11:01:02 +08:00
committed by GitHub

View File

@@ -3382,6 +3382,8 @@ _on_before_issue() {
if [ "$_chk_pre_hook" ]; then
_info "Run pre hook:'$_chk_pre_hook'"
if ! (
export Le_Domain="$_chk_main_domain"
export Le_Alt="$_chk_alt_domains"
cd "$DOMAIN_PATH" && eval "$_chk_pre_hook"
); then
_err "Error when run pre hook."