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
d4befeb5
Unverified
Commit
d4befeb5
authored
Feb 04, 2023
by
neil
Committed by
GitHub
Feb 04, 2023
Browse files
Merge pull request #4489 from acmesh-official/dev
sync
parents
c8f48a4a
f7f1168a
Changes
3
Show whitespace changes
Inline
Side-by-side
.github/workflows/dockerhub.yml
View file @
d4befeb5
...
...
@@ -43,9 +43,9 @@ jobs:
-
name
:
checkout code
uses
:
actions/checkout@v3
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v
1
uses
:
docker/setup-qemu-action@v
2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v
1
uses
:
docker/setup-buildx-action@v
2
-
name
:
login to docker hub
run
:
|
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
...
...
acme.sh
View file @
d4befeb5
...
...
@@ -1856,10 +1856,11 @@ _inithttp() {
_ACME_CURL
=
"
$_ACME_CURL
-g "
fi
#from curl 7.76: return fail on HTTP errors but keep the body
if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
_ACME_CURL="$_ACME_CURL --fail-with-body "
fi
#don't use --fail-with-body
##from curl 7.76: return fail on HTTP errors but keep the body
#if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
# _ACME_CURL="$_ACME_CURL --fail-with-body "
#fi
fi
if
[
-z
"
$_ACME_WGET
"
]
&&
_exists
"wget"
;
then
...
...
@@ -4023,7 +4024,7 @@ _ns_purge_cf() {
#checks if cf server is available
_ns_is_available_cf
()
{
if _get "https://cloudflare-dns.com" "" 1 >/dev/null
2>&1
; then
if
_get
"https://cloudflare-dns.com"
""
1
0
>
/dev/null
;
then
return
0
else
return
1
...
...
@@ -4031,7 +4032,7 @@ _ns_is_available_cf() {
}
_ns_is_available_google
()
{
if _get "https://dns.google" "" 1 >/dev/null
2>&1
; then
if
_get
"https://dns.google"
""
1
0
>
/dev/null
;
then
return
0
else
return
1
...
...
@@ -4047,7 +4048,7 @@ _ns_lookup_google() {
}
_ns_is_available_ali
()
{
if _get "https://dns.alidns.com" "" 1 >/dev/null
2>&1
; then
if
_get
"https://dns.alidns.com"
""
1
0
>
/dev/null
;
then
return
0
else
return
1
...
...
@@ -4063,7 +4064,7 @@ _ns_lookup_ali() {
}
_ns_is_available_dp
()
{
if _get "https://doh.pub" "" 1 >/dev/null
2>&1
; then
if
_get
"https://doh.pub"
""
1
0
>
/dev/null
;
then
return
0
else
return
1
...
...
dnsapi/dns_vultr.sh
View file @
d4befeb5
...
...
@@ -78,7 +78,7 @@ dns_vultr_rm() {
return
1
fi
_record_id
=
"
$(
echo
"
$response
"
|
tr
'{}'
'\n'
|
grep
'"TXT"'
|
grep
--
"
$txtvalue
"
|
tr
','
'\n'
|
grep
-i
'id'
|
cut
-d
:
-f
2
)
"
_record_id
=
"
$(
echo
"
$response
"
|
tr
'{}'
'\n'
|
grep
'"TXT"'
|
grep
--
"
$txtvalue
"
|
tr
','
'\n'
|
grep
-i
'id'
|
cut
-d
:
-f
2
|
tr
-d
'"'
)
"
_debug _record_id
"
$_record_id
"
if
[
"
$_record_id
"
]
;
then
_info
"Successfully retrieved the record id for ACME challenge."
...
...
@@ -116,7 +116,7 @@ _get_root() {
return
1
fi
if
printf
"%s
\n
"
"
$response
"
|
grep
'^\{.*\}'
>
/dev/null
;
then
if
printf
"%s
\n
"
"
$response
"
|
grep
-E
'^\{.*\}'
>
/dev/null
;
then
if
_contains
"
$response
"
"
\"
domain
\"
:
\"
$_domain
\"
"
;
then
_sub_domain
=
"
$(
echo
"
$fulldomain
"
|
sed
"s/
\\
.
$_domain
\$
//"
)
"
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