Selaa lähdekoodia

Merge pull request #3657 from Sp1l/extend_pre_hook

Make domain names available to pre hook
neil 4 vuotta sitten
vanhempi
sitoutus
b335840f97
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      acme.sh

+ 2 - 0
acme.sh

@@ -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."