mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 10:51:53 +02:00
Merge pull request #4387 from dhuang/shh-apache-version
Do not output apache version when deploying cert
This commit is contained in:
@@ -174,6 +174,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
# Set Version
|
# Set Version
|
||||||
if self.version is None:
|
if self.version is None:
|
||||||
self.version = self.get_version()
|
self.version = self.get_version()
|
||||||
|
logger.debug('Apache version is %s',
|
||||||
|
'.'.join(str(i) for i in self.version))
|
||||||
if self.version < (2, 2):
|
if self.version < (2, 2):
|
||||||
raise errors.NotSupportedError(
|
raise errors.NotSupportedError(
|
||||||
"Apache Version %s not supported.", str(self.version))
|
"Apache Version %s not supported.", str(self.version))
|
||||||
@@ -254,9 +256,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
raise errors.PluginError(
|
raise errors.PluginError(
|
||||||
"Unable to find cert and/or key directives")
|
"Unable to find cert and/or key directives")
|
||||||
|
|
||||||
logger.info("Deploying Certificate to VirtualHost %s", vhost.filep)
|
logger.info("Deploying Certificate for %s to VirtualHost %s", domain, vhost.filep)
|
||||||
logger.debug("Apache version is %s",
|
|
||||||
".".join(str(i) for i in self.version))
|
|
||||||
|
|
||||||
if self.version < (2, 4, 8) or (chain_path and not fullchain_path):
|
if self.version < (2, 4, 8) or (chain_path and not fullchain_path):
|
||||||
# install SSLCertificateFile, SSLCertificateKeyFile,
|
# install SSLCertificateFile, SSLCertificateKeyFile,
|
||||||
|
|||||||
Reference in New Issue
Block a user