From f0e1a1ebc900f350c0928093741363d8e3c3b161 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:26:19 -0700 Subject: [PATCH] bind: Don't enable app when setup is rerun Tests: - Rerun setup after disabling the app. App is not enabled. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/bind/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/bind/__init__.py b/plinth/modules/bind/__init__.py index fe2f114a5..0f4c6449d 100644 --- a/plinth/modules/bind/__init__.py +++ b/plinth/modules/bind/__init__.py @@ -67,7 +67,8 @@ class BindApp(app_module.App): """Install and configure the app.""" super().setup(old_version) privileged.setup(old_version) - self.enable() + if not old_version: + self.enable() def force_upgrade(self, _packages): """Force upgrade the managed packages to resolve conffile prompt."""