From ab4fb9238e111e72b5a9bb9f580f32126ea49a07 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:27:48 -0700 Subject: [PATCH] janus: 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/janus/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/janus/__init__.py b/plinth/modules/janus/__init__.py index 8d26e3d25..74428d3cd 100644 --- a/plinth/modules/janus/__init__.py +++ b/plinth/modules/janus/__init__.py @@ -96,7 +96,8 @@ class JanusApp(app_module.App): """Install and configure the app.""" super().setup(old_version) privileged.setup() - self.enable() + if not old_version: + self.enable() def force_upgrade(self, packages): """Force upgrade janus to resolve conffile prompts."""