Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
7df20e50
Commit
7df20e50
authored
Feb 05, 2018
by
jim-p
Browse files
When registering, consider a 200 final response code as an account that already exists. Fixes #1242
parent
7128d799
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
7df20e50
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment