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
9d548d81
Commit
9d548d81
authored
Nov 04, 2016
by
neilpang
Browse files
add more debug info
parent
1cbf416b
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
9d548d81
...
...
@@ -91,6 +91,30 @@ _printargs() {
printf
"
\n
"
}
_dlg_versions
()
{
echo
"Diagnosis versions: "
echo
"openssl:"
if
_exists openssl
;
then
openssl version 2>&1
else
echo
"openssl doesn't exists."
fi
echo
"apache:"
if
[
"
$_APACHECTL
"
]
&&
_exists
"
$_APACHECTL
"
;
then
_APACHECTL
-V
2>&1
else
echo
"apache doesn't exists."
fi
echo
"nc:"
if
_exists
"nc"
;
then
nc
-h
2>&1
else
_debug
"nc doesn't exists."
fi
}
_log
()
{
[
-z
"
$LOG_FILE
"
]
&&
return
...
...
@@ -2058,6 +2082,10 @@ _on_issue_err() {
_err
"See:
$_DEBUG_WIKI
"
fi
if
[
"
$DEBUG
"
]
&&
[
"
$DEBUG
"
-gt
"0"
]
;
then
_debug
"
$(
_dlg_versions
)
"
fi
#run the post hook
if
[
"
$Le_PostHook
"
]
;
then
_info
"Run post hook:'
$Le_PostHook
'"
...
...
@@ -4359,6 +4387,8 @@ _process() {
_processAccountConf
fi
_debug2 LE_WORKING_DIR
"
$LE_WORKING_DIR
"
if
[
"
$DEBUG
"
]
;
then
version
fi
...
...
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