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')
This commit is contained in:
Damien Varron
2013-05-24 15:56:00 +02:00
parent 916748c427
commit d9b32a5f07
+1 -1
View File
@@ -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