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
3ec72fce
Commit
3ec72fce
authored
Nov 07, 2016
by
nytral
Committed by
neilpang
Nov 09, 2016
Browse files
bugfix
parent
b9091e14
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_me.sh
View file @
3ec72fce
...
...
@@ -46,7 +46,7 @@ dns_me_add(){
if
[
"
$count
"
=
"0"
]
;
then
_info
"Adding record"
if
_me_rest POST
"
$_domain_id
/records/"
"{
\"
type
\"
:
\"
TXT
\"
,
\"
name
\"
:
\"
$_sub_domain
\"
,
\"
value
\"
:
\"
$txtvalue
\"
,
\"
gtdLocation
\"
:
\"
DEFAULT
\"
,
\"
ttl
\"
:120}"
;
then
if
printf
--
"%s"
"
$response
"
|
grep id
:
>
/dev/null
;
then
if
[
"
$?
"
=
"0"
]
;
then
_info
"Added"
#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