mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user