Skip to content

Commit 9da38f3

Browse files
TreeN0debuchdag
authored andcommitted
feat: acme.sh pre and post hooks
1 parent 4b638eb commit 9da38f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/letsencrypt_service

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ function update_cert {
220220
--fullchain-file "${certificate_dir}/fullchain.pem" \
221221
)
222222

223+
# acme.sh pre and post hooks
224+
if [[ -n "$ACME_PRE_HOOK" ]]; then
225+
params_issue_arr+=(--pre-hook "$ACME_PRE_HOOK")
226+
fi
227+
if [[ -n "$ACME_POST_HOOK" ]]; then
228+
params_issue_arr+=(--post-hook "$ACME_POST_HOOK")
229+
fi
230+
223231
[[ ! -d "$config_home" ]] && mkdir -p "$config_home"
224232
params_base_arr+=(--config-home "$config_home")
225233
local account_file="${config_home}/ca/${ca_dir}/account.json"

0 commit comments

Comments
 (0)