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
a7bc2293
Commit
a7bc2293
authored
Apr 23, 2023
by
neilpang
Browse files
fix
https://github.com/acmesh-official/acme.sh/issues/4612#issuecomment-1518929996
parent
84e4181e
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/docker.sh
View file @
a7bc2293
...
...
@@ -273,16 +273,27 @@ _check_curl_version() {
_minor
=
"
$(
_getfield
"
$_cversion
"
2
'.'
)
"
_debug2
"_minor"
"
$_minor
"
if
[
"
$_major$_minor
"
-lt
"740"
]
;
then
if
[
"
$_major
"
-ge
"8"
]
;
then
#ok
return
0
;
fi
if
[
"
$_major
"
=
"7"
]
;
then
if
[
"
$_minor
"
-lt
"40"
]
;
then
_err
"curl v
$_cversion
doesn't support unit socket"
_err
"Please upgrade to curl 7.40 or later."
return
1
fi
if
[
"
$_minor
"
-lt
"50"
]
;
then
_debug
"Use short host name"
export
_CURL_NO_HOST
=
1
else
export
_CURL_NO_HOST
=
fi
return
0
else
_err
"curl v
$_cversion
doesn't support unit socket"
_err
"Please upgrade to curl 7.40 or later."
return
1
fi
if
[
"
$_major$_minor
"
-lt
"750"
]
;
then
_debug
"Use short host name"
export
_CURL_NO_HOST
=
1
else
export
_CURL_NO_HOST
=
fi
return
0
}
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