mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
move save command up to tls_sni
This commit is contained in:
@@ -557,11 +557,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
|
||||
# search for NameVirtualHost directive for ip_addr
|
||||
# note ip_addr can be FQDN although Apache does not recommend it
|
||||
if self.version >= (2, 4):
|
||||
return True
|
||||
else:
|
||||
self.save("don't lose config changes", True)
|
||||
return self.parser.find_dir("NameVirtualHost", str(target_addr))
|
||||
return (self.version >= (2, 4) or
|
||||
self.parser.find_dir("NameVirtualHost", str(target_addr)))
|
||||
|
||||
def add_name_vhost(self, addr):
|
||||
"""Adds NameVirtualHost directive for given address.
|
||||
|
||||
@@ -76,6 +76,7 @@ class ApacheTlsSni01(common.TLSSNI01):
|
||||
|
||||
# Setup the configuration
|
||||
addrs = self._mod_config()
|
||||
self.configurator.save("Don't lose mod_config changes", True)
|
||||
self.configurator.make_addrs_sni_ready(addrs)
|
||||
|
||||
# Save reversible changes
|
||||
|
||||
Reference in New Issue
Block a user