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
93fc48a2
Commit
93fc48a2
authored
Nov 01, 2016
by
neilpang
Browse files
add more error check
parent
2a1e06f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
93fc48a2
...
@@ -1846,7 +1846,7 @@ _clearup() {
...
@@ -1846,7 +1846,7 @@ _clearup() {
_clearupdns() {
_clearupdns() {
_debug "_clearupdns"
_debug "_clearupdns"
if [ "$dnsadded" != 1 ] || [ -z "$vlist" ] ; then
if [ "$dnsadded" != 1 ] || [ -z "$vlist" ] ; then
_
info
"Dns not added, skip."
_
debug
"Dns not added, skip."
return
return
fi
fi
...
@@ -2567,7 +2567,15 @@ issue() {
...
@@ -2567,7 +2567,15 @@ issue() {
_debug "writing token:$token to $wellknown_path/$token"
_debug "writing token:$token to $wellknown_path/$token"
mkdir -p "$wellknown_path"
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 [ ! "$usingApache" ] ; then
if webroot_owner=$(_stat $_currentRoot) ; then
if webroot_owner=$(_stat $_currentRoot) ; then
_debug "Changing owner/group of .well-known to $webroot_owner"
_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