Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
4320b8a5
Commit
4320b8a5
authored
May 08, 2017
by
neil
Committed by
GitHub
May 08, 2017
Browse files
Merge pull request #833 from Neilpang/dev
Dev
parents
be15e63d
a20707cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nsone.sh
View file @
4320b8a5
...
...
@@ -45,7 +45,7 @@ dns_nsone_add() {
_debug count
"
$count
"
if
[
"
$count
"
=
"0"
]
;
then
_info
"Adding record"
if
_nsone_rest PUT
"zones/
$_domain
/
$fulldomain
/TXT"
"{
\"
answers
\"
:[{
\"
answer
\"
:[
\"
$txtvalue
\"
]}],
\"
type
\"
:
\"
TXT
\"
,
\"
domain
\"
:
\"
$fulldomain
\"
,
\"
zone
\"
:
\"
$_domain
\"
}"
;
then
if
_contains
"
$response
"
"
$fulldomain
"
;
then
_info
"Added"
...
...
@@ -124,9 +124,9 @@ _get_root() {
fi
if
_contains
"
$response
"
"
\"
zone
\"
:
\"
$h
\"
"
;
then
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
1-
$p
)
_domain
=
"
$h
"
return
0
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
1-
$p
)
_domain
=
"
$h
"
return
0
fi
p
=
$i
i
=
$(
_math
"
$i
"
+ 1
)
...
...
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