mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
bind: Handle conffile prompt during upgrade
- Simply keep the old configuration as the configuration format for bind is unlikely to change due to its stability. Future versions may consider checking for version of package being upgraded to. - Don't start service if not already running. - Don't perform firewall changes. - No need to rerun setup as old configuration is being kept. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
16252a10f3
commit
d51a2b6865
@ -104,6 +104,11 @@ def setup(helper, old_version=None):
|
||||
helper.call('post', actions.superuser_run, 'bind', ['setup'])
|
||||
|
||||
|
||||
def force_upgrade(helper):
|
||||
"""Force upgrade the managed packages to resolve conffile prompt."""
|
||||
helper.install(managed_packages, force_configuration='old')
|
||||
|
||||
|
||||
def enable():
|
||||
"""Enable the module."""
|
||||
actions.superuser_run('service', ['enable', managed_services[0]])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user