mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
bind: Drop alias handling unnecessary in >= Bullseye
Alias was added to deal with Buster -> Bullseye transition. In Buster the daemon was named bind9 and in Bullseye the daemon is named named with alias to bind9. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
5b5249873d
commit
84ae338e66
@ -39,14 +39,14 @@ def subcommand_setup(arguments):
|
|||||||
|
|
||||||
Path(ZONES_DIR).mkdir(exist_ok=True, parents=True)
|
Path(ZONES_DIR).mkdir(exist_ok=True, parents=True)
|
||||||
|
|
||||||
action_utils.service_restart('bind9')
|
action_utils.service_restart('named')
|
||||||
|
|
||||||
|
|
||||||
def subcommand_configure(arguments):
|
def subcommand_configure(arguments):
|
||||||
"""Configure BIND."""
|
"""Configure BIND."""
|
||||||
set_forwarders(arguments.forwarders)
|
set_forwarders(arguments.forwarders)
|
||||||
set_dnssec(arguments.dnssec)
|
set_dnssec(arguments.dnssec)
|
||||||
action_utils.service_restart('bind9')
|
action_utils.service_restart('named')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
@ -23,7 +23,7 @@ from . import manifest
|
|||||||
|
|
||||||
version = 2
|
version = 2
|
||||||
|
|
||||||
managed_services = ['bind9', 'named']
|
managed_services = ['named']
|
||||||
|
|
||||||
_description = [
|
_description = [
|
||||||
_('BIND enables you to publish your Domain Name System (DNS) information '
|
_('BIND enables you to publish your Domain Name System (DNS) information '
|
||||||
@ -96,8 +96,7 @@ class BindApp(app_module.App):
|
|||||||
'daemon-bind', managed_services[0], listen_ports=[(53, 'tcp6'),
|
'daemon-bind', managed_services[0], listen_ports=[(53, 'tcp6'),
|
||||||
(53, 'udp6'),
|
(53, 'udp6'),
|
||||||
(53, 'tcp4'),
|
(53, 'tcp4'),
|
||||||
(53, 'udp4')],
|
(53, 'udp4')])
|
||||||
alias=managed_services[1])
|
|
||||||
self.add(daemon)
|
self.add(daemon)
|
||||||
|
|
||||||
backup_restore = BackupRestore('backup-restore-bind',
|
backup_restore = BackupRestore('backup-restore-bind',
|
||||||
|
|||||||
@ -7,5 +7,5 @@ backup = {
|
|||||||
'config': {
|
'config': {
|
||||||
'files': ['/etc/bind/named.conf.options']
|
'files': ['/etc/bind/named.conf.options']
|
||||||
},
|
},
|
||||||
'services': ['bind9']
|
'services': ['named']
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user