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
local -n acme_challenge="ACME_${cid}_CHALLENGE"
if [[ -z "${acme_challenge}" ]]; then
acme_challenge="${ACME_CHALLENGE:-HTTP-01}"
fi
acme_challenge="${acme_challenge:-HTTP-01}"
if [[ "$acme_challenge" == "HTTP-01" ]]; then
# HTTP-01 challenge