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
84151350
Commit
84151350
authored
Feb 15, 2019
by
Augustin-FL
Browse files
update get_root
parent
5c941476
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_online.sh
View file @
84151350
...
...
@@ -122,10 +122,8 @@ _get_root() {
#not valid
return
1
fi
if
!
_online_rest GET
"domain/
$h
/version/active"
;
then
_err
"Unable to retrive DNS zone matching this domain"
return
1
fi
_online_rest GET
"domain/
$h
/version/active"
if
!
_contains
"
$response
"
"Domain not found"
>
/dev/null
;
then
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
1-
$p
)
...
...
@@ -136,7 +134,8 @@ _get_root() {
p
=
$i
i
=
$(
_math
"
$i
"
+ 1
)
done
return
1
_err
"Unable to retrive DNS zone matching this domain"
return
1
}
# this function create a temporary zone version
...
...
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