X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/48ee742135ea5c591b7636e0be9ae5c902fe05b0..c0e64855a967519169d9c5d8747edbdeb85e49ec:/code/main.py diff --git a/code/main.py b/code/main.py index dd2b591..9f57f84 100755 --- a/code/main.py +++ b/code/main.py @@ -51,7 +51,11 @@ class InvirtUnauthWeb(View): @cherrypy.expose @cherrypy.tools.mako(filename="/unauth.mako") def index(self): - return {'simple': True} + d = dict(simple=True) + if os.path.exists("/etc/invirt/message"): + f = open('/etc/invirt/message') + d['serviceMessage']= f.read() + return d class InvirtWeb(View): def __init__(self):