Unverified Commit 338b3ba5 authored by neil's avatar neil Committed by GitHub
Browse files

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

Consider a 200 final response code as an account that already exists. Fixes #1242
parents e27dfbb0 7df20e50
...@@ -3170,7 +3170,7 @@ _regAccount() { ...@@ -3170,7 +3170,7 @@ _regAccount() {
if [ "$code" = "" ] || [ "$code" = '201' ]; then if [ "$code" = "" ] || [ "$code" = '201' ]; then
echo "$response" >"$ACCOUNT_JSON_PATH" echo "$response" >"$ACCOUNT_JSON_PATH"
_info "Registered" _info "Registered"
elif [ "$code" = '409' ]; then elif [ "$code" = '409' ] || [ "$code" = '200' ]; then
_info "Already registered" _info "Already registered"
else else
_err "Register account Error: $response" _err "Register account Error: $response"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment