don't switch from test back to production ca

This commit is contained in:
neil
2026-03-21 10:40:10 +08:00
committed by neil
parent d66264e741
commit d050f3458b

21
acme.sh
View File

@@ -5555,16 +5555,17 @@ renew() {
. "$DOMAIN_CONF" . "$DOMAIN_CONF"
_debug Le_API "$Le_API" _debug Le_API "$Le_API"
case "$Le_API" in #don't switch it back
"$CA_LETSENCRYPT_V2_TEST") # case "$Le_API" in
_info "Switching back to $CA_LETSENCRYPT_V2" # "$CA_LETSENCRYPT_V2_TEST")
Le_API="$CA_LETSENCRYPT_V2" # _info "Switching back to $CA_LETSENCRYPT_V2"
;; # Le_API="$CA_LETSENCRYPT_V2"
"$CA_GOOGLE_TEST") # ;;
_info "Switching back to $CA_GOOGLE" # "$CA_GOOGLE_TEST")
Le_API="$CA_GOOGLE" # _info "Switching back to $CA_GOOGLE"
;; # Le_API="$CA_GOOGLE"
esac # ;;
# esac
if [ "$_server" ]; then if [ "$_server" ]; then
Le_API="$_server" Le_API="$_server"