mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
radicale, searx: Pre-enable necessary apache modules
To avoid Apache restart during installation. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
3c420c1488
commit
c50e322cdb
@ -136,6 +136,7 @@ def subcommand_setup(arguments):
|
|||||||
# FreedomBox applications.
|
# FreedomBox applications.
|
||||||
webserver.enable('cgi', kind='module')
|
webserver.enable('cgi', kind='module')
|
||||||
webserver.enable('authnz_ldap', kind='module')
|
webserver.enable('authnz_ldap', kind='module')
|
||||||
|
webserver.enable('proxy_uwsgi', kind='module')
|
||||||
webserver.enable('proxy_wstunnel', kind='module')
|
webserver.enable('proxy_wstunnel', kind='module')
|
||||||
|
|
||||||
# enable configuration for PHP-FPM
|
# enable configuration for PHP-FPM
|
||||||
|
|||||||
@ -129,7 +129,6 @@ def subcommand_enable(_):
|
|||||||
os.makedirs(COLLECTIONS_PATH)
|
os.makedirs(COLLECTIONS_PATH)
|
||||||
action_utils.service_disable('radicale')
|
action_utils.service_disable('radicale')
|
||||||
action_utils.uwsgi_enable('radicale')
|
action_utils.uwsgi_enable('radicale')
|
||||||
action_utils.webserver_enable('proxy_uwsgi', kind='module')
|
|
||||||
else:
|
else:
|
||||||
action_utils.service_enable('radicale')
|
action_utils.service_enable('radicale')
|
||||||
action_utils.service_restart('radicale')
|
action_utils.service_restart('radicale')
|
||||||
|
|||||||
@ -135,7 +135,6 @@ def subcommand_setup(_):
|
|||||||
"""Post installation actions for Searx"""
|
"""Post installation actions for Searx"""
|
||||||
_copy_uwsgi_configuration()
|
_copy_uwsgi_configuration()
|
||||||
_update_uwsgi_configuration()
|
_update_uwsgi_configuration()
|
||||||
action_utils.webserver_enable('proxy_uwsgi', kind='module')
|
|
||||||
|
|
||||||
if not os.path.exists(SETTINGS_FILE):
|
if not os.path.exists(SETTINGS_FILE):
|
||||||
example_settings_file = '/usr/share/doc/searx/examples/settings.yml.gz'
|
example_settings_file = '/usr/share/doc/searx/examples/settings.yml.gz'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user