From 64d0411d6b25eb6f14831c59614fb68fc1668458 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 21 Feb 2022 15:03:33 -0800 Subject: [PATCH] email: Allow re-running setup Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/email/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/email/__init__.py b/plinth/modules/email/__init__.py index d56eceffa..54a463837 100644 --- a/plinth/modules/email/__init__.py +++ b/plinth/modules/email/__init__.py @@ -205,7 +205,8 @@ def setup(helper, old_version=None): actions.superuser_run('service', ['try-restart', 'rspamd']) # Expose to public internet - helper.call('post', app.enable) + if old_version == 0: + helper.call('post', app.enable) def on_domain_added(sender, domain_type, name, description='', services=None,