mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 06:15:36 -04:00
constants.AUGEAS_LENS_DIR
This commit is contained in:
parent
ac137fc00a
commit
f5053ba8af
4 changed files with 9 additions and 9 deletions
|
|
@ -3,4 +3,4 @@ include README.rst
|
|||
recursive-include docs *
|
||||
recursive-include letsencrypt_apache/tests/testdata *
|
||||
include letsencrypt_apache/options-ssl-apache.conf
|
||||
include letsencrypt_apache/httpd.aug
|
||||
recursive-include letsencrypt_apache/augeas_lens *.aug
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ class AugeasConfigurator(common.Plugin):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super(AugeasConfigurator, self).__init__(*args, **kwargs)
|
||||
|
||||
# Set Augeas flags to not save backup (we do it ourselves)
|
||||
# Set Augeas to not load anything by default
|
||||
my_flags = augeas.Augeas.NONE | augeas.Augeas.NO_MODL_AUTOLOAD
|
||||
my_dir = os.path.dirname(constants.AUGEAS_HTTPD_LENS)
|
||||
self.aug = augeas.Augeas(loadpath=my_dir, flags=my_flags)
|
||||
self.aug = augeas.Augeas(
|
||||
loadpath=constants.AUGEAS_LENS_DIR,
|
||||
# Do not save backup (we do it ourselves), do not load
|
||||
# anything by default
|
||||
flags=(augeas.Augeas.NONE | augeas.Augeas.NO_MODL_AUTOLOAD))
|
||||
self.save_notes = ""
|
||||
|
||||
# See if any temporary changes need to be recovered
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ MOD_SSL_CONF_SRC = pkg_resources.resource_filename(
|
|||
"""Path to the Apache mod_ssl config file found in the Let's Encrypt
|
||||
distribution."""
|
||||
|
||||
AUGEAS_HTTPD_LENS = pkg_resources.resource_filename(
|
||||
"letsencrypt_apache", "httpd.aug")
|
||||
"""Path to the Augeas lens"""
|
||||
AUGEAS_LENS_DIR = pkg_resources.resource_filename(
|
||||
"letsencrypt_apache", "augeas_lens")
|
||||
"""Path to the Augeas lens directory"""
|
||||
|
||||
REWRITE_HTTPS_ARGS = [
|
||||
"^", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,QSA,R=permanent]"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue