From d6502737602e5bfd8e7baca8878fcacd3a17cf68 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 12 Jul 2015 11:58:23 +0530 Subject: [PATCH] xmpp: Use webserver action utilties --- actions/xmpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/xmpp b/actions/xmpp index 5978a43cc..da357d730 100755 --- a/actions/xmpp +++ b/actions/xmpp @@ -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(_):