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
553d861b
Unverified
Commit
553d861b
authored
Jan 31, 2023
by
Roman Lumetsberger
Committed by
GitHub
Jan 31, 2023
Browse files
fix shell check and formatting
parent
7b5d94d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_ipv64.sh
View file @
553d861b
...
...
@@ -37,9 +37,8 @@ dns_ipv64_add() {
_debug _domain
"
$_domain
"
# convert to lower case
_domain
=
$(
echo
"
$_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
_sub_domain
=
$(
echo
"
$_sub_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
_domain
=
"
$(
echo
"
$_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
"
_sub_domain
=
"
$(
echo
"
$_sub_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
"
# Now add the TXT record
_info
"Trying to add TXT record"
if
_ipv64_rest
"POST"
"add_record=
$_domain
&praefix=
$_sub_domain
&type=TXT&content=
$txtvalue
"
;
then
...
...
@@ -75,9 +74,8 @@ dns_ipv64_rm() {
_debug _domain
"
$_domain
"
# convert to lower case
_domain
=
$(
echo
"
$_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
_sub_domain
=
$(
echo
"
$_sub_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
_domain
=
"
$(
echo
"
$_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
"
_sub_domain
=
"
$(
echo
"
$_sub_domain
"
|
tr
'[:upper:]'
'[:lower:]'
)
"
# Now delete the TXT record
_info
"Trying to delete TXT record"
if
_ipv64_rest
"DELETE"
"del_record=
$_domain
&praefix=
$_sub_domain
&type=TXT&content=
$txtvalue
"
;
then
...
...
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