Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
98c4ce0c
Commit
98c4ce0c
authored
Nov 01, 2016
by
neil
Committed by
GitHub
Nov 01, 2016
Browse files
Merge pull request #356 from Neilpang/dev
add more error check
parents
d7eea12a
93fc48a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
98c4ce0c
...
...
@@ -1846,7 +1846,7 @@ _clearup() {
_clearupdns
()
{
_debug
"_clearupdns"
if
[
"
$dnsadded
"
!=
1
]
||
[
-z
"
$vlist
"
]
;
then
_
info
"Dns not added, skip."
_
debug
"Dns not added, skip."
return
fi
...
...
@@ -2567,7 +2567,15 @@ issue() {
_debug
"writing token:
$token
to
$wellknown_path
/
$token
"
mkdir
-p
"
$wellknown_path
"
printf
"%s"
"
$keyauthorization
"
>
"
$wellknown_path
/
$token
"
if
!
printf
"%s"
"
$keyauthorization
"
>
"
$wellknown_path
/
$token
"
;
then
_err
"
$d
:Can not write token to file :
$wellknown_path
/
$token
"
_clearupwebbroot
"
$_currentRoot
"
"
$removelevel
"
"
$token
"
_clearup
_on_issue_err
return
1
fi
if
[
!
"
$usingApache
"
]
;
then
if
webroot_owner
=
$(
_stat
$_currentRoot
)
;
then
_debug
"Changing owner/group of .well-known to
$webroot_owner
"
...
...
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