mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
xmpp: Use webserver action utilties
This commit is contained in:
parent
c9d918157c
commit
d650273760
@ -135,9 +135,9 @@ def subcommand_pre_install(arguments):
|
|||||||
|
|
||||||
def subcommand_setup(_):
|
def subcommand_setup(_):
|
||||||
"""Setup jwchat apache conf"""
|
"""Setup jwchat apache conf"""
|
||||||
subprocess.call(['a2dissite', 'jwchat'])
|
with action_utils.WebserverChange() as webserver_change:
|
||||||
subprocess.call(['a2enconf', 'jwchat-plinth'])
|
webserver_change.disable('jwchat', kind='site')
|
||||||
action_utils.service_reload('apache2')
|
webserver_change.enable('jwchat-plinth')
|
||||||
|
|
||||||
|
|
||||||
def subcommand_is_ldap_enabled(_):
|
def subcommand_is_ldap_enabled(_):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user