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
cfdaff5a
Commit
cfdaff5a
authored
Sep 22, 2016
by
neil
Browse files
fix cf
parent
18e46962
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cf.sh
View file @
cfdaff5a
...
...
@@ -48,7 +48,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
printf
$response
|
grep
$fulldomain
>
/dev/null
;
then
if
printf
--
"%s"
"
$response
"
|
grep
$fulldomain
>
/dev/null
;
then
_info
"Added, sleeping 10 seconds"
sleep
10
#todo: check if the record takes effect
...
...
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