Add basic testing infrastructure
[cascardo/ipsilon.git] / ipsilon / install / ipsilon-server-install
index 844505c..1bf0072 100755 (executable)
@@ -41,6 +41,7 @@ DATADIR = '/var/lib/ipsilon'
 HTTPDCONFD = '/etc/httpd/conf.d'
 BINDIR = '/usr/sbin'
 STATICDIR = '/usr/share/ipsilon'
+WSGI_SOCKET_PREFIX = None
 
 
 class ConfigurationError(Exception):
@@ -102,6 +103,8 @@ def install(plugins, args):
                 'sysuser': args['system_user'],
                 'ipsilondir': BINDIR,
                 'staticdir': STATICDIR}
+    if WSGI_SOCKET_PREFIX:
+        confopts['wsgi_socket'] = 'WSGISocketPrefix %s' % WSGI_SOCKET_PREFIX
     files.write_from_template(ipsilon_conf,
                               os.path.join(TEMPLATES, 'ipsilon.conf'),
                               confopts)