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
040ca532
Commit
040ca532
authored
May 01, 2019
by
Jakub Filo
Browse files
Fixed style to match upstream
parent
522b7c51
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nsd.sh
View file @
040ca532
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
#Nsd_Command="sudo nsd-control reload"
#Nsd_Command="sudo nsd-control reload"
# args: fulldomain txtvalue
# args: fulldomain txtvalue
dns_nsd_add
()
dns_nsd_add
()
{
{
fulldomain
=
$1
fulldomain
=
$1
txtvalue
=
$2
txtvalue
=
$2
ttlvalue
=
300
ttlvalue
=
300
...
@@ -31,7 +30,7 @@ dns_nsd_add()
...
@@ -31,7 +30,7 @@ dns_nsd_add()
_savedomainconf Nsd_ZoneFile
"
$Nsd_ZoneFile
"
_savedomainconf Nsd_ZoneFile
"
$Nsd_ZoneFile
"
_savedomainconf Nsd_Command
"
$Nsd_Command
"
_savedomainconf Nsd_Command
"
$Nsd_Command
"
echo
"
$fulldomain
.
$ttlvalue
IN TXT
\"
$txtvalue
\"
"
>>
"
$Nsd_ZoneFile
"
echo
"
$fulldomain
.
$ttlvalue
IN TXT
\"
$txtvalue
\"
"
>>
"
$Nsd_ZoneFile
"
_info
"Added TXT record for
$fulldomain
"
_info
"Added TXT record for
$fulldomain
"
_debug
"Running
$Nsd_Command
"
_debug
"Running
$Nsd_Command
"
if
eval
"
$Nsd_Command
"
;
then
if
eval
"
$Nsd_Command
"
;
then
...
@@ -44,8 +43,7 @@ dns_nsd_add()
...
@@ -44,8 +43,7 @@ dns_nsd_add()
}
}
# args: fulldomain txtvalue
# args: fulldomain txtvalue
dns_nsd_rm
()
dns_nsd_rm
()
{
{
fulldomain
=
$1
fulldomain
=
$1
txtvalue
=
$2
txtvalue
=
$2
ttlvalue
=
300
ttlvalue
=
300
...
...
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