email: Don't start disabled daemons when setup is re-run

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-16 11:59:00 -08:00 committed by James Valleroy
parent ef6619d8d6
commit 25da081ea2
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -183,10 +183,10 @@ def setup(helper, old_version=None):
helper.call('post', privileged.postfix.setup)
helper.call('post', privileged.spam.setup)
# Reload
actions.superuser_run('service', ['reload', 'postfix'])
actions.superuser_run('service', ['reload', 'dovecot'])
actions.superuser_run('service', ['reload', 'rspamd'])
# Restart daemons
actions.superuser_run('service', ['try-restart', 'postfix'])
actions.superuser_run('service', ['try-restart', 'dovecot'])
actions.superuser_run('service', ['try-restart', 'rspamd'])
# Expose to public internet
helper.call('post', app.enable)