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
e9edecf3
Unverified
Commit
e9edecf3
authored
Jun 24, 2020
by
msamoylych
Committed by
GitHub
Jun 24, 2020
Browse files
Update dns_hexonet.sh
Remove useless &
parent
fb22ee94
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_hexonet.sh
View file @
e9edecf3
...
...
@@ -42,7 +42,7 @@ dns_hexonet_add() {
_debug _domain
"
$_domain
"
_debug
"Getting txt records"
_hexonet_rest
"
&
command=QueryDNSZoneRRList&dnszone=
${
h
}
.&RRTYPE=TXT"
_hexonet_rest
"command=QueryDNSZoneRRList&dnszone=
${
h
}
.&RRTYPE=TXT"
if
!
_contains
"
$response
"
"CODE=200"
;
then
_err
"Error"
...
...
@@ -88,7 +88,7 @@ dns_hexonet_rm() {
_debug _domain
"
$_domain
"
_debug
"Getting txt records"
_hexonet_rest
"
&
command=QueryDNSZoneRRList&dnszone=
${
h
}
.&RRTYPE=TXT&RR=
${
txtvalue
}
"
_hexonet_rest
"command=QueryDNSZoneRRList&dnszone=
${
h
}
.&RRTYPE=TXT&RR=
${
txtvalue
}
"
if
!
_contains
"
$response
"
"CODE=200"
;
then
_err
"Error"
...
...
@@ -100,7 +100,7 @@ dns_hexonet_rm() {
if
[
"
$count
"
=
"0"
]
;
then
_info
"Don't need to remove."
else
if
!
_hexonet_rest
"
&
command=UpdateDNSZone&dnszone=
${
_domain
}
.&delrr0='
${
_sub_domain
}
%20IN%20TXT%20
\"
${
txtvalue
}
\"
"
;
then
if
!
_hexonet_rest
"command=UpdateDNSZone&dnszone=
${
_domain
}
.&delrr0='
${
_sub_domain
}
%20IN%20TXT%20
\"
${
txtvalue
}
\"
"
;
then
_err
"Delete record error."
return
1
fi
...
...
@@ -126,7 +126,7 @@ _get_root() {
return
1
fi
if
!
_hexonet_rest
"
&
command=QueryDNSZoneRRList&dnszone=
${
h
}
."
;
then
if
!
_hexonet_rest
"command=QueryDNSZoneRRList&dnszone=
${
h
}
."
;
then
return
1
fi
...
...
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