xmpp: Use webserver action utilties

This commit is contained in:
Sunil Mohan Adapa 2015-07-12 11:58:23 +05:30 committed by James Valleroy
parent c9d918157c
commit d650273760

View File

@ -135,9 +135,9 @@ def subcommand_pre_install(arguments):
def subcommand_setup(_):
"""Setup jwchat apache conf"""
subprocess.call(['a2dissite', 'jwchat'])
subprocess.call(['a2enconf', 'jwchat-plinth'])
action_utils.service_reload('apache2')
with action_utils.WebserverChange() as webserver_change:
webserver_change.disable('jwchat', kind='site')
webserver_change.enable('jwchat-plinth')
def subcommand_is_ldap_enabled(_):