From 8979239273a6a41ef858c4438cbde66e6b75f9dc Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Thu, 21 Jan 2010 03:06:28 -0500 Subject: [PATCH] Put the MOTD at /etc/invirt/motd.html and parse it as HTML svn path=/trunk/packages/invirt-web/; revision=2910 --- code/templates/list.mako | 4 ++-- code/templates/unauth.mako | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/templates/list.mako b/code/templates/list.mako index f363537..d71792a 100644 --- a/code/templates/list.mako +++ b/code/templates/list.mako @@ -9,9 +9,9 @@ VM List -%if os.path.exists("/etc/invirt/message"): +%if os.path.exists("/etc/invirt/motd.html"):
-

${open('/etc/invirt/message').read()}

+

${open('/etc/invirt/motd.html').read()|n}

%endif diff --git a/code/templates/unauth.mako b/code/templates/unauth.mako index f802548..c9739d4 100644 --- a/code/templates/unauth.mako +++ b/code/templates/unauth.mako @@ -14,9 +14,9 @@ Debian or Ubuntu install or install the operating system of your choice. The service is free to any Athena account holder.

-%if os.path.exists("/etc/invirt/message"): +%if os.path.exists("/etc/invirt/motd.html"):
-

${open('/etc/invirt/message').read()}

+

${open('/etc/invirt/motd.html').read()|n}

%endif -- 1.7.9.5