mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 16:12:13 +02:00
Added option to disable apache module handling per OS basis
This commit is contained in:
@@ -540,8 +540,9 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
:param str port: Port to listen on
|
:param str port: Port to listen on
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if "ssl_module" not in self.parser.modules:
|
if constants.os_constant("handle_mods"):
|
||||||
self.enable_mod("ssl", temp=temp)
|
if "ssl_module" not in self.parser.modules:
|
||||||
|
self.enable_mod("ssl", temp=temp)
|
||||||
|
|
||||||
# Check for Listen <port>
|
# Check for Listen <port>
|
||||||
# Note: This could be made to also look for ip:443 combo
|
# Note: This could be made to also look for ip:443 combo
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ CLI_DEFAULTS_DEBIAN = dict(
|
|||||||
enmod="a2enmod",
|
enmod="a2enmod",
|
||||||
dismod="a2dismod",
|
dismod="a2dismod",
|
||||||
le_vhost_ext="-le-ssl.conf",
|
le_vhost_ext="-le-ssl.conf",
|
||||||
|
handle_mods=True
|
||||||
)
|
)
|
||||||
CLI_DEFAULTS_CENTOS = dict(
|
CLI_DEFAULTS_CENTOS = dict(
|
||||||
server_root="/etc/httpd",
|
server_root="/etc/httpd",
|
||||||
@@ -16,6 +17,7 @@ CLI_DEFAULTS_CENTOS = dict(
|
|||||||
enmod=None,
|
enmod=None,
|
||||||
dismod=None,
|
dismod=None,
|
||||||
le_vhost_ext="-le-ssl.conf",
|
le_vhost_ext="-le-ssl.conf",
|
||||||
|
handle_mods=False
|
||||||
)
|
)
|
||||||
CLI_DEFAULTS = {
|
CLI_DEFAULTS = {
|
||||||
"debian": CLI_DEFAULTS_DEBIAN,
|
"debian": CLI_DEFAULTS_DEBIAN,
|
||||||
|
|||||||
Reference in New Issue
Block a user