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
7e0b334b
Commit
7e0b334b
authored
Mar 18, 2018
by
neilpang
Browse files
fix empty ACCOUNT_URL for v2 for the first time use
parent
5d8d217a
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
7e0b334b
...
@@ -3250,8 +3250,13 @@ _regAccount() {
...
@@ -3250,8 +3250,13 @@ _regAccount() {
_debug2 responseHeaders "$responseHeaders"
_debug2 responseHeaders "$responseHeaders"
_accUri="$(echo "$responseHeaders" | grep "^Location:" | _head_n 1 | cut -d ' ' -f 2 | tr -d "\r\n")"
_accUri="$(echo "$responseHeaders" | grep "^Location:" | _head_n 1 | cut -d ' ' -f 2 | tr -d "\r\n")"
_debug "_accUri" "$_accUri"
_debug "_accUri" "$_accUri"
if [ -z "$_accUri" ]; then
_err "Can not find account id url."
_err "$responseHeaders"
return 1
fi
_savecaconf "ACCOUNT_URL" "$_accUri"
_savecaconf "ACCOUNT_URL" "$_accUri"
export ACCOUNT_URL="$
ACCOUNT_URL
"
export ACCOUNT_URL="$
_accUri
"
CA_KEY_HASH="$(__calcAccountKeyHash)"
CA_KEY_HASH="$(__calcAccountKeyHash)"
_debug "Calc CA_KEY_HASH" "$CA_KEY_HASH"
_debug "Calc CA_KEY_HASH" "$CA_KEY_HASH"
...
...
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