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
94965a41
Commit
94965a41
authored
Feb 02, 2017
by
neil
Committed by
GitHub
Feb 02, 2017
Browse files
Merge pull request #573 from Neilpang/dev
Dev
parents
ffa9f104
70b63a5e
Changes
2
Show whitespace changes
Inline
Side-by-side
deploy/README.md
0 → 100644
View file @
94965a41
#Using deploy api
dnsapi/dns_lua.sh
View file @
94965a41
...
...
@@ -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