1
0

refactor: remove support for global ACME_CHALLENGE

This commit is contained in:
Nicolas Duchon 2024-07-16 13:47:16 +02:00
parent 9772acc57d
commit 124b6c034c

@ -172,9 +172,7 @@ function update_cert {
# ACME challenge type # ACME challenge type
local -n acme_challenge="ACME_${cid}_CHALLENGE" local -n acme_challenge="ACME_${cid}_CHALLENGE"
if [[ -z "${acme_challenge}" ]]; then acme_challenge="${acme_challenge:-HTTP-01}"
acme_challenge="${ACME_CHALLENGE:-HTTP-01}"
fi
if [[ "$acme_challenge" == "HTTP-01" ]]; then if [[ "$acme_challenge" == "HTTP-01" ]]; then
# HTTP-01 challenge # HTTP-01 challenge