Ensure that services are registered when modules complete setup

This commit is contained in:
James Valleroy committed 2016-12-04 13:45:31 -05:00
1 parent 5f1c72d647
commit b234d0e1b3
18 files changed
+109

No files matched your search

+5
View File
@@ -83,6 +83,11 @@ def setup(helper, old_version=None):
helper.install(managed_packages)
helper.call('post', actions.superuser_run, 'roundcube', ['setup'])
helper.call('post', add_shortcut)
global service
if service is None:
service = service_module.Service(
'roundcube', title, ports=['http', 'https'], is_external=True,
is_enabled=is_enabled, enable=enable, disable=disable)
def add_shortcut():