mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-10-31 19:41:45 +00:00
Add variable exports for Successful Post Hook and Renew Hook calls (#2431)
This commit is contained in:
parent
874bd093cb
commit
c7849a43e1
10
acme.sh
10
acme.sh
@ -3265,6 +3265,11 @@ _on_issue_success() {
|
||||
if [ "$_chk_post_hook" ]; then
|
||||
_info "Run post hook:'$_chk_post_hook'"
|
||||
if ! (
|
||||
export CERT_PATH
|
||||
export CERT_KEY_PATH
|
||||
export CA_CERT_PATH
|
||||
export CERT_FULLCHAIN_PATH
|
||||
export Le_Domain="$_main_domain"
|
||||
cd "$DOMAIN_PATH" && eval "$_chk_post_hook"
|
||||
); then
|
||||
_err "Error when run post hook."
|
||||
@ -3276,6 +3281,11 @@ _on_issue_success() {
|
||||
if [ "$IS_RENEW" ] && [ "$_chk_renew_hook" ]; then
|
||||
_info "Run renew hook:'$_chk_renew_hook'"
|
||||
if ! (
|
||||
export CERT_PATH
|
||||
export CERT_KEY_PATH
|
||||
export CA_CERT_PATH
|
||||
export CERT_FULLCHAIN_PATH
|
||||
export Le_Domain="$_main_domain"
|
||||
cd "$DOMAIN_PATH" && eval "$_chk_renew_hook"
|
||||
); then
|
||||
_err "Error when run renew hook."
|
||||
|
Loading…
Reference in New Issue
Block a user