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
d24a87ca
Commit
d24a87ca
authored
Feb 28, 2017
by
neilpang
Browse files
minor
parent
9683ffe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_gandi_livedns.sh
View file @
d24a87ca
...
@@ -37,7 +37,7 @@ dns_gandi_livedns_add() {
...
@@ -37,7 +37,7 @@ dns_gandi_livedns_add() {
_debug sub_domain
"
$_sub_domain
"
_debug sub_domain
"
$_sub_domain
"
_gandi_livedns_rest PUT
"domains/
$_domain
/records/
$_sub_domain
/TXT"
"{
\"
rrset_ttl
\"
: 300,
\"
rrset_values
\"
:[
\"
$txtvalue
\"
]}"
_gandi_livedns_rest PUT
"domains/
$_domain
/records/
$_sub_domain
/TXT"
"{
\"
rrset_ttl
\"
: 300,
\"
rrset_values
\"
:[
\"
$txtvalue
\"
]}"
_contains
"
$response
"
'{"message": "Zone Record Created"}'
}
}
#Usage: fulldomain txtvalue
#Usage: fulldomain txtvalue
...
@@ -71,6 +71,7 @@ _get_root() {
...
@@ -71,6 +71,7 @@ _get_root() {
p
=
1
p
=
1
while
true
;
do
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
_debug h
"
$h
"
if
[
-z
"
$h
"
]
;
then
if
[
-z
"
$h
"
]
;
then
#not valid
#not valid
return
1
return
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