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
6f930641
Commit
6f930641
authored
Apr 16, 2016
by
neil
Browse files
fix bug: multi webroots
parent
b2817897
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
6f930641
...
...
@@ -1009,7 +1009,6 @@ issue() {
_err
"set up apache error. Report error to me."
return
1
fi
wellknown_path
=
"
$ACME_DIR
"
else
usingApache
=
""
fi
...
...
@@ -1242,11 +1241,10 @@ issue() {
_debug serverproc
$serverproc
else
if
[[
-z
"
$wellknown_path
"
]]
;
then
if
[[
"
$_currentRoot
"
==
"apache"
]]
;
then
wellknown_path
=
"
$ACME_DIR
"
else
wellknown_path
=
"
$_currentRoot
/.well-known/acme-challenge"
fi
_debug wellknown_path
"
$wellknown_path
"
if
[[
!
-d
"
$_currentRoot
/.well-known"
]]
;
then
removelevel
=
'1'
elif
[[
!
-d
"
$_currentRoot
/.well-known/acme-challenge"
]]
;
then
...
...
@@ -1254,6 +1252,9 @@ issue() {
else
removelevel
=
'3'
fi
fi
_debug wellknown_path
"
$wellknown_path
"
token
=
"
$(
echo
-e
-n
"
$keyauthorization
"
|
cut
-d
'.'
-f
1
)
"
_debug
"writing token:
$token
to
$wellknown_path
/
$token
"
...
...
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