fix test endpoint

This commit is contained in:
neil 2020-08-15 10:33:24 +08:00
parent a6d22e3b22
commit b3a801df11

16
acme.sh
View File

@ -2593,16 +2593,16 @@ _initpath() {
fi fi
if [ -z "$ACME_DIRECTORY" ]; then if [ -z "$ACME_DIRECTORY" ]; then
default_acme_server=$(_readaccountconf "DEFAULT_ACME_SERVER") if [ "$STAGE" ]; then
_debug default_acme_server "$default_acme_server" ACME_DIRECTORY="$DEFAULT_STAGING_CA"
if [ "$default_acme_server" ]; then _info "Using stage ACME_DIRECTORY: $ACME_DIRECTORY"
ACME_DIRECTORY="$default_acme_server"
else else
if [ -z "$STAGE" ]; then default_acme_server=$(_readaccountconf "DEFAULT_ACME_SERVER")
ACME_DIRECTORY="$DEFAULT_CA" _debug default_acme_server "$default_acme_server"
if [ "$default_acme_server" ]; then
ACME_DIRECTORY="$default_acme_server"
else else
ACME_DIRECTORY="$DEFAULT_STAGING_CA" ACME_DIRECTORY="$DEFAULT_CA"
_info "Using stage ACME_DIRECTORY: $ACME_DIRECTORY"
fi fi
fi fi
fi fi