letsencrypt: Pre-enable necessary apache modules

To avoid restart during installation (although since letsencrypt is an essential
app and this is not an issue).

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:13:02 -08:00 committed by James Valleroy
parent c50e322cdb
commit cf06aa3d56
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 1 additions and 1 deletions

View File

@ -121,6 +121,7 @@ def subcommand_setup(arguments):
webserver.enable('proxy_http', kind='module')
webserver.enable('proxy_fcgi', kind='module')
webserver.enable('rewrite', kind='module')
webserver.enable('macro', kind='module')
# switch to mod_ssl from mod_gnutls
webserver.disable('gnutls', kind='module')

View File

@ -511,7 +511,6 @@ def setup_webserver_config(domain, webserver_change):
with open(file_name, 'w') as file_handle:
file_handle.write(APACHE_CONFIGURATION.format(domain=domain))
webserver_change.enable('macro', kind='module')
webserver_change.enable('freedombox-tls-site-macro', kind='config')
webserver_change.enable(domain, kind='site')