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 authored and James Valleroy committed 2022-03-02 07:38:48 -05:00
1 parent ef6619d8d6
commit 25da081ea2
1 file changed
+4 -4
+4 -4
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)