From f07b83a40b234ceb50ec0a9c6ff96cef0a3fac3d Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Thu, 23 Apr 2009 00:07:46 +0100 Subject: [PATCH] Let's try treating it like a ruby variable Signed-off-by: Stephen Gran --- templates/motd.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/motd.erb b/templates/motd.erb index bf327bb5a..367516113 100644 --- a/templates/motd.erb +++ b/templates/motd.erb @@ -1,8 +1,8 @@ This device is for authorized users only. All traffic on this device is monitored and will be used as evidence for prosecutions. -<% if File.exists?("/etc/puppet/modules/motd/files/$fqdn/motd.tail") -%> +<% if File.exists?("/etc/puppet/modules/motd/files/" + fqdn "/motd.tail") -%> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -<% File.open("/etc/puppet/modules/motd/files/$fqdn/motd.tail").read -%> +<% File.open("/etc/puppet/modules/motd/files/" + fqdn + "/motd.tail").read -%> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <% end -%> -- 2.20.1