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 authored and James Valleroy committed 2019-02-28 20:13:38 -05:00
1 parent c50e322cdb
commit cf06aa3d56
2 files changed
+1 -1

No files matched your search

+1
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')
-1
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')