Browse Source

Merge pull request #1244 from jim-p/acme-fix-1242

Consider a 200 final response code as an account that already exists. Fixes #1242
cron
neil 7 years ago
committed by GitHub
parent
commit
338b3ba590
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      acme.sh

2
acme.sh

@ -3170,7 +3170,7 @@ _regAccount() {
if [ "$code" = "" ] || [ "$code" = '201' ]; then
echo "$response" >"$ACCOUNT_JSON_PATH"
_info "Registered"
elif [ "$code" = '409' ]; then
elif [ "$code" = '409' ] || [ "$code" = '200' ]; then
_info "Already registered"
else
_err "Register account Error: $response"

Loading…
Cancel
Save