From d9b32a5f072fa5829278fc178be206796893977f Mon Sep 17 00:00:00 2001 From: Damien Varron Date: Fri, 24 May 2013 15:56:00 +0200 Subject: [PATCH] Update jail.local.erb Warning: Variable access via 'operatingsystem' is deprecated. Use '@operatingsystem' instead. template[modules/fail2ban/templates/jail.local.erb]:36 (at modules/fail2ban/templates/jail.local.erb:36:in `result') --- templates/jail.local.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/jail.local.erb b/templates/jail.local.erb index 2f58785..6a866c9 100644 --- a/templates/jail.local.erb +++ b/templates/jail.local.erb @@ -33,7 +33,7 @@ action = iptables[name=SSH, port=ssh, protocol=tcp] <% unless scope.lookupvar('fail2ban::mailto').empty? -%> sendmail-whois[name=SSH, dest=<%= scope.lookupvar('fail2ban::mailto') %>, sender=fail2ban@<%= fqdn %>] <% end -%> -<% if operatingsystem == "Debian" -%> +<% if @operatingsystem == "Debian" -%> logpath = /var/log/auth.log <% else -%> logpath = /var/log/secure