ikiwiki: Pre-enable necessary apache modules

To avoid restart during installation.

Closes: #1482.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-02-26 18:15:56 -08:00 committed by James Valleroy
parent cf06aa3d56
commit 33f54089b8
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 3 additions and 3 deletions

View File

@ -133,10 +133,12 @@ def subcommand_setup(arguments):
# enable mod_headers for HSTS
webserver.enable('headers', kind='module')
# Various modules for authentication/authorization
webserver.enable('authnz_ldap', kind='module')
# enable some critical modules to avoid restart while installing
# FreedomBox applications.
webserver.enable('cgi', kind='module')
webserver.enable('authnz_ldap', kind='module')
webserver.enable('proxy_uwsgi', kind='module')
webserver.enable('proxy_wstunnel', kind='module')

View File

@ -140,8 +140,6 @@ def setup():
os.makedirs(SITE_PATH)
with action_utils.WebserverChange() as webserver_change:
webserver_change.enable('cgi', kind='module')
webserver_change.enable('authnz_ldap', kind='module')
webserver_change.enable('ikiwiki-plinth')