mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Adjust SUSE logic to work
Finding the apache configured TLS cert location now works in an easy configuration.
This commit is contained in:
parent
356de251ee
commit
5f170585c5
@ -55,8 +55,15 @@ def get_certificate_paths():
|
||||
if not keypath and os.path.exists('/etc/apache2'): # suse way
|
||||
for currpath, _, files in os.walk('/etc/apache2'):
|
||||
for fname in files:
|
||||
keypath, certpath = check_apache_config(os.path.join(currpath,
|
||||
fname))
|
||||
if fname.endswith('.template'):
|
||||
continue
|
||||
kploc = check_apache_config(os.path.join(currpath,
|
||||
fname))
|
||||
if keypath and kploc[0]:
|
||||
return None, None # Ambiguous...
|
||||
if kploc[0]:
|
||||
keypath, certpath = kploc
|
||||
|
||||
return keypath, certpath
|
||||
|
||||
def create_certificate(keyout=None, certout=None):
|
||||
|
Loading…
Reference in New Issue
Block a user