mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-07-02 02:42:44 +00:00
Make domain names available to pre hook
This commit is contained in:
parent
fe1136aa95
commit
03e1c40885
2
acme.sh
2
acme.sh
@ -3279,6 +3279,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…
x
Reference in New Issue
Block a user