mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 16:12:13 +02:00
Support CentOS configuration layout in parser
This commit is contained in:
@@ -546,8 +546,7 @@ class ApacheParser(object):
|
|||||||
|
|
||||||
def _find_config_root(self):
|
def _find_config_root(self):
|
||||||
"""Find the Apache Configuration Root file."""
|
"""Find the Apache Configuration Root file."""
|
||||||
location = ["apache2.conf", "httpd.conf"]
|
location = ["apache2.conf", "httpd.conf", "conf/httpd.conf"]
|
||||||
|
|
||||||
for name in location:
|
for name in location:
|
||||||
if os.path.isfile(os.path.join(self.root, name)):
|
if os.path.isfile(os.path.join(self.root, name)):
|
||||||
return os.path.join(self.root, name)
|
return os.path.join(self.root, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user