mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
*: Make force upgrading part of app rather than a module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
f6ef0135d2
commit
bb2cbace6c
8 files changed
+102
-100
No files matched your search
@@ -16,7 +16,7 @@ from plinth import cfg, menu
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
from plinth.package import Packages
|
||||
from plinth.package import Packages, install
|
||||
from plinth.utils import format_lazy
|
||||
|
||||
from . import manifest
|
||||
@@ -107,11 +107,10 @@ class BindApp(app_module.App):
|
||||
str(old_version)])
|
||||
self.enable()
|
||||
|
||||
|
||||
def force_upgrade(helper, _packages):
|
||||
"""Force upgrade the managed packages to resolve conffile prompt."""
|
||||
helper.install(['bind9'], force_configuration='old')
|
||||
return True
|
||||
def force_upgrade(self, _packages):
|
||||
"""Force upgrade the managed packages to resolve conffile prompt."""
|
||||
install(['bind9'], force_configuration='old')
|
||||
return True
|
||||
|
||||
|
||||
def get_config():
|
||||
|
||||
Reference in new issue
Block a user