From 9f51fd6a9c15856d323909ccde94547fc3918f8c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:29:45 -0700 Subject: [PATCH] rssbridge: 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/rssbridge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/rssbridge/__init__.py b/plinth/modules/rssbridge/__init__.py index 083c39448..49520a7a0 100644 --- a/plinth/modules/rssbridge/__init__.py +++ b/plinth/modules/rssbridge/__init__.py @@ -93,7 +93,8 @@ class RSSBridgeApp(app_module.App): """Install and configure the app.""" super().setup(old_version) privileged.setup() - self.enable() + if not old_version: + self.enable() def uninstall(self): """De-configure and uninstall the app."""