From 9fa1e1f563ebaa0595e3203afd88e98ae97833f3 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:29:01 -0700 Subject: [PATCH] privoxy: 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/privoxy/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/privoxy/__init__.py b/plinth/modules/privoxy/__init__.py index 75dc3f6c6..4e0f781ec 100644 --- a/plinth/modules/privoxy/__init__.py +++ b/plinth/modules/privoxy/__init__.py @@ -97,7 +97,8 @@ class PrivoxyApp(app_module.App): privileged.pre_install() super().setup(old_version) privileged.setup() - self.enable() + if not old_version: + self.enable() def diagnose_url_with_proxy():