Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoona Hoikkala <joona@kuori.org>2015-12-07 13:38:52 +0300
committerJoona Hoikkala <joona@kuori.org>2015-12-07 13:38:52 +0300
commit9e0bcf9f3c4593656f4a305ee7e55c439c686fa8 (patch)
tree9d66d54b56242df3bb9b28e432ce6058798a2d89 /letsencrypt-apache
parentc9f14e04618f10e8240c5fbbd39ade1c8699c2de (diff)
Add cli parameter for handle_mods
Diffstat (limited to 'letsencrypt-apache')
-rw-r--r--letsencrypt-apache/letsencrypt_apache/configurator.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py
index c8b42bd5f..9acc5cad6 100644
--- a/letsencrypt-apache/letsencrypt_apache/configurator.py
+++ b/letsencrypt-apache/letsencrypt_apache/configurator.py
@@ -103,6 +103,9 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
add("challenge-location",
default=constants.os_constant("challenge_location"),
help="Directory path for challenge configuration.")
+ add("handle-modules", default=constants.os_constant("handle_mods"),
+ help="Let installer handle enabling required modules for you."+
+ "(Only Ubuntu/Debian currently)")
le_util.add_deprecated_argument(add, "init-script", 1)
def __init__(self, *args, **kwargs):
@@ -545,7 +548,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
:param str port: Port to listen on
"""
- if constants.os_constant("handle_mods"):
+ if self.conf("handle_mods"):
if "ssl_module" not in self.parser.modules:
self.enable_mod("ssl", temp=temp)