From 9c091df245942f4d6cae361c7c9be811d2055944 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 12:09:32 -0800 Subject: [PATCH] ejabberd: Split app initialziation Tests: - When enabled, when domain name or hostname changes, ejabberd actions are triggered. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/ejabberd/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/ejabberd/__init__.py b/plinth/modules/ejabberd/__init__.py index 41a5418e7..8e3c2d052 100644 --- a/plinth/modules/ejabberd/__init__.py +++ b/plinth/modules/ejabberd/__init__.py @@ -128,6 +128,9 @@ class EjabberdApp(app_module.App): turn = EjabberdTurnConsumer('turn-ejabberd') self.add(turn) + @staticmethod + def post_init(): + """Perform post initialization operations.""" pre_hostname_change.connect(on_pre_hostname_change) post_hostname_change.connect(on_post_hostname_change) domain_added.connect(on_domain_added)