From 2fa273f8bc57e6b0eee85c98aeaa0ccc110de186 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 25 Jul 2010 18:55:07 +0100 Subject: [PATCH] cast to string Signed-off-by: Stephen Gran --- templates/syslog-ng.conf.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index 795ca9ec3..822616ba2 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -1,4 +1,4 @@ -<%- if defined?(syslogversion) && syslogversion == "3" -%> +<%- if defined?(syslogversion) && syslogversion.to_s == "3" -%> @version: 3.0 <%- end -%> ## @@ -102,7 +102,7 @@ source s_local { # function to send logs to) unix-stream("/dev/log"); # messages from the kernel -<%- if defined?(syslogversion) && syslogversion == "2" -%> +<%- if defined?(syslogversion) && syslogversion.to_s == "2" -%> file("/proc/kmsg" log_prefix("kernel: ")); <%- else -%> file("/proc/kmsg" program_override("kernel: ")); @@ -112,7 +112,7 @@ source s_local { # function to send logs to) unix-dgram("/var/run/log"); # messages from the kernel -<%- if defined?(syslogversion) && syslogversion == "2" -%> +<%- if defined?(syslogversion) && syslogversion.to_s == "2" -%> file("/dev/klog" log_prefix("kernel: ")); <%- else -%> file("/dev/klog" program_override("kernel: ")); @@ -404,7 +404,7 @@ log { <%- if hostname != "heininen" -%> - <%- if defined?(syslogversion) && syslogversion == "3" -%> + <%- if defined?(syslogversion) && syslogversion.to_s == "3" -%> destination loghost-heininen { tcp("heininen.debian.org" port (5140) tls( key_file("/etc/ssl/debian/keys/thishost.key") -- 2.20.1