From a6a7de70e6b0e93de3bbf29d46d6065145c5eb58 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:29:59 -0700 Subject: [PATCH] shaarli: 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/shaarli/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/shaarli/__init__.py b/plinth/modules/shaarli/__init__.py index ed7f054f2..a6db3aa60 100644 --- a/plinth/modules/shaarli/__init__.py +++ b/plinth/modules/shaarli/__init__.py @@ -68,4 +68,5 @@ class ShaarliApp(app_module.App): def setup(self, old_version): """Install and configure the app.""" super().setup(old_version) - self.enable() + if not old_version: + self.enable()