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
ed15ff05
Commit
ed15ff05
authored
Jul 10, 2022
by
Lorenz Stechauner
Browse files
dns_world4you: Fix upper case fqdn issues
Signed-off-by:
Lorenz Stechauner
<
lorenz.stechauner@necronda.net
>
parent
a8f71f79
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
ed15ff05
...
@@ -12,7 +12,7 @@ RECORD=''
...
@@ -12,7 +12,7 @@ RECORD=''
# Usage: dns_world4you_add <fqdn> <value>
# Usage: dns_world4you_add <fqdn> <value>
dns_world4you_add
()
{
dns_world4you_add
()
{
fqdn
=
"
$1
"
fqdn
=
$(
echo
"
$1
"
|
tr
'[:upper:]'
'[:lower:]'
)
value
=
"
$2
"
value
=
"
$2
"
_info
"Using world4you to add record"
_info
"Using world4you to add record"
_debug fulldomain
"
$fqdn
"
_debug fulldomain
"
$fqdn
"
...
@@ -74,7 +74,7 @@ dns_world4you_add() {
...
@@ -74,7 +74,7 @@ dns_world4you_add() {
# Usage: dns_world4you_rm <fqdn> <value>
# Usage: dns_world4you_rm <fqdn> <value>
dns_world4you_rm
()
{
dns_world4you_rm
()
{
fqdn
=
"
$1
"
fqdn
=
$(
echo
"
$1
"
|
tr
'[:upper:]'
'[:lower:]'
)
value
=
"
$2
"
value
=
"
$2
"
_info
"Using world4you to remove record"
_info
"Using world4you to remove record"
_debug fulldomain
"
$fqdn
"
_debug fulldomain
"
$fqdn
"
...
...
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