mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 16:15:42 +02:00
Give user command line control on using enable site helper script
This commit is contained in:
@@ -106,6 +106,9 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
add("handle-modules", default=constants.os_constant("handle_mods"),
|
||||
help="Let installer handle enabling required modules for you." +
|
||||
"(Only Ubuntu/Debian currently)")
|
||||
add("handle-sites", default=constants.os_constant("handle_sites"),
|
||||
help="Let installer handle enabling sites for you." +
|
||||
"(Only Ubuntu/Debian currently)")
|
||||
le_util.add_deprecated_argument(add, "init-script", 1)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
@@ -246,7 +249,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
self.save_notes += "\tSSLCertificateChainFile %s\n" % chain_path
|
||||
|
||||
# Make sure vhost is enabled if distro with enabled / available
|
||||
if constants.os_constant("handle_sites"):
|
||||
if self.conf("handle-sites"):
|
||||
if not vhost.enabled:
|
||||
self.enable_site(vhost)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user