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
59f7a2f6
Commit
59f7a2f6
authored
Feb 27, 2017
by
neil
Committed by
GitHub
Feb 27, 2017
Browse files
Wget (#678) (#679)
* --use-wget force to use wget * fix force wget
parent
96c4bb7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
59f7a2f6
...
@@ -1505,7 +1505,7 @@ _post() {
...
@@ -1505,7 +1505,7 @@ _post() {
_inithttp
_inithttp
if
[
"
$_ACME_CURL
"
]
;
then
if
[
"
$_ACME_CURL
"
]
&&
[
"
${
ACME_USE_WGET
:-
0
}
"
=
"0"
]
;
then
_CURL
=
"
$_ACME_CURL
"
_CURL
=
"
$_ACME_CURL
"
if
[
"
$HTTPS_INSECURE
"
]
;
then
if
[
"
$HTTPS_INSECURE
"
]
;
then
_CURL
=
"
$_CURL
--insecure "
_CURL
=
"
$_CURL
--insecure "
...
@@ -1572,7 +1572,7 @@ _get() {
...
@@ -1572,7 +1572,7 @@ _get() {
_inithttp
_inithttp
if
[
"
$_ACME_CURL
"
]
;
then
if
[
"
$_ACME_CURL
"
]
&&
[
"
${
ACME_USE_WGET
:-
0
}
"
=
"0"
]
;
then
_CURL
=
"
$_ACME_CURL
"
_CURL
=
"
$_ACME_CURL
"
if
[
"
$HTTPS_INSECURE
"
]
;
then
if
[
"
$HTTPS_INSECURE
"
]
;
then
_CURL
=
"
$_CURL
--insecure "
_CURL
=
"
$_CURL
--insecure "
...
@@ -4787,6 +4787,7 @@ Parameters:
...
@@ -4787,6 +4787,7 @@ Parameters:
--listen-v4 Force standalone/tls server to listen at ipv4.
--listen-v4 Force standalone/tls server to listen at ipv4.
--listen-v6 Force standalone/tls server to listen at ipv6.
--listen-v6 Force standalone/tls server to listen at ipv6.
--openssl-bin Specifies a custom openssl bin location.
--openssl-bin Specifies a custom openssl bin location.
--use-wget Force to use wget, if you have both curl and wget installed.
"
"
}
}
...
@@ -4865,6 +4866,12 @@ _processAccountConf() {
...
@@ -4865,6 +4866,12 @@ _processAccountConf() {
_saveaccountconf
"AUTO_UPGRADE"
"
$AUTO_UPGRADE
"
_saveaccountconf
"AUTO_UPGRADE"
"
$AUTO_UPGRADE
"
fi
fi
if
[
"
$_use_wget
"
]
;
then
_saveaccountconf
"ACME_USE_WGET"
"
$_use_wget
"
elif
[
"
$ACME_USE_WGET
"
]
;
then
_saveaccountconf
"ACME_USE_WGET"
"
$ACME_USE_WGET
"
fi
}
}
_process
()
{
_process
()
{
...
@@ -4909,6 +4916,7 @@ _process() {
...
@@ -4909,6 +4916,7 @@ _process() {
_listen_v6
=
""
_listen_v6
=
""
_openssl_bin
=
""
_openssl_bin
=
""
_syslog
=
""
_syslog
=
""
_use_wget
=
""
while
[
${#}
-gt
0
]
;
do
while
[
${#}
-gt
0
]
;
do
case
"
${
1
}
"
in
case
"
${
1
}
"
in
...
@@ -5288,6 +5296,10 @@ _process() {
...
@@ -5288,6 +5296,10 @@ _process() {
ACME_OPENSSL_BIN
=
"
$_openssl_bin
"
ACME_OPENSSL_BIN
=
"
$_openssl_bin
"
shift
shift
;;
;;
--use-wget
)
_use_wget
=
"1"
ACME_USE_WGET
=
"1"
;;
*
)
*
)
_err
"Unknown parameter :
$1
"
_err
"Unknown parameter :
$1
"
return
1
return
1
...
...
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