From 02192266c22e6ca80db5a43198a8ad8a8a53f7b1 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:26:34 -0700 Subject: [PATCH] deluge: Don't enable app when setup is rerun Tests: - Could not test: rerun setup after disabling the app. App is not enabled. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/deluge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/deluge/__init__.py b/plinth/modules/deluge/__init__.py index d2e1dc5ba..385abe2c5 100644 --- a/plinth/modules/deluge/__init__.py +++ b/plinth/modules/deluge/__init__.py @@ -105,7 +105,8 @@ class DelugeApp(app_module.App): super().setup(old_version) add_user_to_share_group(SYSTEM_USER) privileged.setup() - self.enable() + if not old_version: + self.enable() def uninstall(self): """De-configure and uninstall the app."""