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:
Seth Schoen 2012-07-12 16:44:44 -07:00
parent 7699bf8583
commit f40f372b88

View file

@ -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