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
e6d31b4e
Commit
e6d31b4e
authored
Feb 29, 2016
by
neil
Browse files
minor, add debug info
parent
58b13856
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns-cf.sh
View file @
e6d31b4e
...
@@ -31,9 +31,12 @@ dns-cf-add() {
...
@@ -31,9 +31,12 @@ dns-cf-add() {
_err
"invalid domain"
_err
"invalid domain"
return
1
return
1
fi
fi
_debug _domain_id
"
$_domain_id
"
_debug _sub_domain
"
$_sub_domain
"
_debug _domain
"
$_domain
"
_debug
"Getting txt records"
_debug
"Getting txt records"
_cf_rest GET
"/zones/
$_domain_id
/dns_records?type=TXT&name=
$fulldomain
"
_cf_rest GET
"/zones/
$
{
_domain_id
}
/dns_records?type=TXT&name=
$fulldomain
"
if
[
"
$?
"
!=
"0"
]
||
!
printf
$response
|
grep
\"
success
\"
:true
>
/dev/null
;
then
if
[
"
$?
"
!=
"0"
]
||
!
printf
$response
|
grep
\"
success
\"
:true
>
/dev/null
;
then
_err
"Error"
_err
"Error"
...
...
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