From 69c4aca429f2f50576a457df45db7fe80e3be33b Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Jul 2023 18:26:51 -0700 Subject: [PATCH] ejabberd: 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/ejabberd/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/ejabberd/__init__.py b/plinth/modules/ejabberd/__init__.py index f0484ec1b..0dbb12e54 100644 --- a/plinth/modules/ejabberd/__init__.py +++ b/plinth/modules/ejabberd/__init__.py @@ -146,7 +146,8 @@ class EjabberdApp(app_module.App): self.get_component('letsencrypt-ejabberd').setup_certificates( [domainname]) privileged.setup(domainname) - self.enable() + if not old_version: + self.enable() # Configure STUN/TURN only if there's a valid TLS domain set for Coturn configuration = self.get_component('turn-ejabberd').get_configuration()