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
1476a9ec
Commit
1476a9ec
authored
Feb 01, 2017
by
neilpang
Browse files
fix format
parent
b807ec09
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_lua.sh
View file @
1476a9ec
...
...
@@ -67,7 +67,7 @@ dns_lua_add() {
_debug
"record_id"
"
$record_id
"
_LUA_rest PUT
"zones/
$_domain_id
/records/
$record_id
"
"{
\"
id
\"
:
$record_id
,
\"
type
\"
:
\"
TXT
\"
,
\"
name
\"
:
\"
$fulldomain
.
\"
,
\"
content
\"
:
\"
$txtvalue
\"
,
\"
zone_id
\"
:
$_domain_id
,
\"
ttl
\"
:120}"
if
[
"
$?
"
=
"0"
]
&&
_contains
"
$response
"
"updated_at"
;
then
if
[
"
$?
"
=
"0"
]
&&
_contains
"
$response
"
"updated_at"
;
then
_info
"Updated!"
#todo: check if the record takes effect
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