Make domain names available to pre hook

This commit is contained in:
Bernard Spil 2020-12-06 16:44:57 +01:00
parent fe1136aa95
commit 03e1c40885

View File

@ -3279,6 +3279,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."