Skip to content
Snippets Groups Projects
Commit 79cf6e97 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added another check to get installed apps in SSL test.

parent 1275a63a
No related branches found
No related tags found
No related merge requests found
......@@ -34,10 +34,16 @@ conf_servers = (
('CM_SERVER_NAME', 'campusmanager'),
)
with open('/etc/hosts', 'r') as fo:
hosts = fo.read()
for s, d in conf_servers:
v = conf.get(s)
if v == d:
# vhost is using default value (the service is surely not installed)
# vhost is using default value, the service is surely not installed
continue
if v not in hosts:
# the domain is not in the hosts file, the service is surely not installed
continue
try:
url = 'https://%s' % v
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment