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-10 19:12:07 +0300
committerJoona Hoikkala <joona@kuori.org>2015-12-10 19:12:07 +0300
commit54127eef5a6286959fa9fe424a776f1faa5b61fb (patch)
treeb0ce60694b19b226b5a00b5c3ec3645562b58668 /letsencrypt-apache
parent55cac0dc9f9cf3db175bcf79666963e148b11871 (diff)
Don't call site enable methods when handle-sites is false for the operating system
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 be9825304..3e6881739 100644
--- a/letsencrypt-apache/letsencrypt_apache/configurator.py
+++ b/letsencrypt-apache/letsencrypt_apache/configurator.py
@@ -471,7 +471,10 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
is_ssl = True
filename = get_file_path(path)
- is_enabled = self.is_site_enabled(filename)
+ if self.conf("handle-sites"):
+ is_enabled = self.is_site_enabled(filename)
+ else:
+ is_enabled = True
macro = False
if "/macro/" in path.lower():