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
d0b748a4
Commit
d0b748a4
authored
Jul 02, 2016
by
neil
Browse files
add more debug message.
parent
58f41a19
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
d0b748a4
...
@@ -652,7 +652,7 @@ _post() {
...
@@ -652,7 +652,7 @@ _post() {
_err
"
$(
cat
"
$_CURL_DUMP
"
)
"
_err
"
$(
cat
"
$_CURL_DUMP
"
)
"
fi
fi
fi
fi
el
se
el
if
_exists
"wget"
;
then
_debug
"WGET"
"
$WGET
"
_debug
"WGET"
"
$WGET
"
if
[
"
$needbase64
"
]
;
then
if
[
"
$needbase64
"
]
;
then
if
[
"
$httpmethod
"
=
"POST"
]
;
then
if
[
"
$httpmethod
"
=
"POST"
]
;
then
...
@@ -672,6 +672,9 @@ _post() {
...
@@ -672,6 +672,9 @@ _post() {
_err
"Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code:
$_ret
"
_err
"Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code:
$_ret
"
fi
fi
_sed_i
"s/^ *//g"
"
$HTTP_HEADER
"
_sed_i
"s/^ *//g"
"
$HTTP_HEADER
"
else
_ret
=
"
$?
"
_err
"Neither curl nor wget is found, can not do
$httpmethod
."
fi
fi
_debug
"_ret"
"
$_ret
"
_debug
"_ret"
"
$_ret
"
printf
"%s"
"
$response
"
printf
"%s"
"
$response
"
...
@@ -692,7 +695,7 @@ _get() {
...
@@ -692,7 +695,7 @@ _get() {
$CURL
--user-agent
"
$USER_AGENT
"
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
$url
$CURL
--user-agent
"
$USER_AGENT
"
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
$url
fi
fi
ret
=
$?
ret
=
$?
el
se
el
if
_exists
"wget"
;
then
_debug
"WGET"
"
$WGET
"
_debug
"WGET"
"
$WGET
"
if
[
"
$onlyheader
"
]
;
then
if
[
"
$onlyheader
"
]
;
then
$WGET
--user-agent
=
"
$USER_AGENT
"
--header
"
$_H4
"
--header
"
$_H3
"
--header
"
$_H2
"
--header
"
$_H1
"
-S
-O
/dev/null
$url
2>&1 |
sed
's/^[ ]*//g'
$WGET
--user-agent
=
"
$USER_AGENT
"
--header
"
$_H4
"
--header
"
$_H3
"
--header
"
$_H2
"
--header
"
$_H1
"
-S
-O
/dev/null
$url
2>&1 |
sed
's/^[ ]*//g'
...
@@ -700,6 +703,9 @@ _get() {
...
@@ -700,6 +703,9 @@ _get() {
$WGET
--user-agent
=
"
$USER_AGENT
"
--header
"
$_H4
"
--header
"
$_H3
"
--header
"
$_H2
"
--header
"
$_H1
"
-O
-
$url
$WGET
--user-agent
=
"
$USER_AGENT
"
--header
"
$_H4
"
--header
"
$_H3
"
--header
"
$_H2
"
--header
"
$_H1
"
-O
-
$url
fi
fi
ret
=
$?
ret
=
$?
else
ret
=
$?
_err
"Neither curl nor wget is found, can not do GET."
fi
fi
_debug
"ret"
"
$ret
"
_debug
"ret"
"
$ret
"
return
$ret
return
$ret
...
@@ -2517,7 +2523,7 @@ _installOnline() {
...
@@ -2517,7 +2523,7 @@ _installOnline() {
upgrade
()
{
upgrade
()
{
if
(
if
(
cd
$LE_WORKING_DIR
cd
"
$LE_WORKING_DIR
"
_installOnline
"nocron"
_installOnline
"nocron"
)
;
then
)
;
then
_info
"Upgrade success!"
_info
"Upgrade success!"
...
...
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