revert only when there is no `--server` specified.
@ -5271,6 +5271,7 @@ renew() {
fi
#revert from staging CAs back to production CAs
if [ -z "$ACME_DIRECTORY" ]; then
case "$Le_API" in
"$CA_LETSENCRYPT_V2_TEST")
@ -5286,6 +5287,7 @@ renew() {
Le_API="$CA_GOOGLE"
;;
esac
if [ "$Le_API" ]; then
if [ "$Le_API" != "$ACME_DIRECTORY" ]; then