email: Allow re-running setup

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-02-21 15:03:33 -08:00 committed by James Valleroy
parent e52aae3acd
commit 64d0411d6b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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,