1
0
mirror of https://github.com/hiskaNG/acme.sh.git synced 2026-08-18 11:52:54 +00:00

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

Consider a 200 final response code as an account that already exists. Fixes #1242
This commit is contained in:
neil
2018-02-06 09:28:22 +08:00
committed by GitHub
+1 -1
View File
@@ -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"