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
47ff768b
Commit
47ff768b
authored
Apr 26, 2019
by
neilpang
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/2195
parent
4962cc3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cf.sh
View file @
47ff768b
...
...
@@ -58,7 +58,7 @@ dns_cf_add() {
# if [ "$count" = "0" ]; then
_info
"Adding record"
if
_cf_rest POST
"zones/
$_domain_id
/dns_records"
"{
\"
type
\"
:
\"
TXT
\"
,
\"
name
\"
:
\"
$fulldomain
\"
,
\"
content
\"
:
\"
$txtvalue
\"
,
\"
ttl
\"
:120}"
;
then
if
_contains
"
$response
"
"
$
fulldomain
"
;
then
if
_contains
"
$response
"
"
$
txtvalue
"
;
then
_info
"Added, OK"
return
0
elif
_contains
"
$response
"
"The record already exists"
;
then
...
...
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