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
cd900628
Commit
cd900628
authored
Nov 07, 2016
by
nytral
Committed by
neilpang
Nov 09, 2016
Browse files
better bugfix
parent
3ec72fce
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_me.sh
View file @
cd900628
...
...
@@ -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
[
"
$?
"
=
"0"
]
;
then
if
printf
--
"%s"
"
$response
"
|
grep
\"
id
\"
:
>
/dev/null
;
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