mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
I really like this looking from /etc better because it's faster
(I realize that on some systems httpd.conf is somewhere other than /etc!)
This commit is contained in:
parent
7699bf8583
commit
f40f372b88
1 changed files with 2 additions and 1 deletions
|
|
@ -21,8 +21,9 @@ def getChocCertFile(nonce):
|
|||
|
||||
def findApacheConfigFile():
|
||||
#This needs to be fixed to account for multiple httpd.conf files
|
||||
# TODO: reliably and quickly find the httpd.conf anywher on the system?
|
||||
try:
|
||||
p = subprocess.check_output(["sudo", "find", "/", "-name", "httpd.conf"], stderr=open("/dev/null"))
|
||||
p = subprocess.check_output(["sudo", "find", "/etc", "-name", "httpd.conf"], stderr=open("/dev/null"))
|
||||
p = p[:len(p)-1]
|
||||
print "Apache Config: ", p
|
||||
return p
|
||||
|
|
|
|||
Loading…
Reference in a new issue