From a1217b36beb5b978553562e605f8d2aeda4eacaf Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:30:28 -0700 Subject: [PATCH] ttrss: 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/ttrss/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/ttrss/__init__.py b/plinth/modules/ttrss/__init__.py index abc152eae..9445fcf67 100644 --- a/plinth/modules/ttrss/__init__.py +++ b/plinth/modules/ttrss/__init__.py @@ -117,7 +117,8 @@ class TTRSSApp(app_module.App): privileged.pre_setup() super().setup(old_version) privileged.setup() - self.enable() + if not old_version: + self.enable() def force_upgrade(self, packages): """Force update package to resolve conffile prompts."""