mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #15955 from rallytime/bp-15666
Backport #15666 to 2014.7
This commit is contained in:
commit
c897907b4a
@ -72,9 +72,11 @@ def __catalina_home():
|
||||
'''
|
||||
locations = ['/usr/share/tomcat*', '/opt/tomcat']
|
||||
for location in locations:
|
||||
catalina_home = glob.glob(location)
|
||||
if catalina_home:
|
||||
return catalina_home[-1]
|
||||
folders = glob.glob(location)
|
||||
if folders:
|
||||
for catalina_home in folders:
|
||||
if os.path.isdir(catalina_home + "/bin"):
|
||||
return catalina_home
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user