From 57295ae8930d27c5a67fd1cfee58f4fa6942465a Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 10 Dec 2021 17:47:38 +0530 Subject: [PATCH] ejabberd: Make name option in Signal handlers Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- plinth/modules/ejabberd/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/ejabberd/__init__.py b/plinth/modules/ejabberd/__init__.py index f37bf61a0..8a868f0d2 100644 --- a/plinth/modules/ejabberd/__init__.py +++ b/plinth/modules/ejabberd/__init__.py @@ -202,10 +202,10 @@ def on_post_hostname_change(sender, old_hostname, new_hostname, **kwargs): ], run_in_background=True) -def on_domain_added(sender, domain_type, name, description='', services=None, - **kwargs): +def on_domain_added(sender, domain_type, name='', description='', + services=None, **kwargs): """Update ejabberd config after domain name change.""" - if app.needs_setup(): + if not name or app.needs_setup(): return conf = actions.superuser_run('ejabberd', ['get-configuration'])