Skip to content

Commit 33fac7e

Browse files
committed
Use gamin instead of inotify on Ubuntu
1 parent e6fa3d1 commit 33fac7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cookbooks/fail2ban/recipes/default.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@
2222

2323
package %w[
2424
fail2ban
25-
python3-inotify
2625
python3-systemd
2726
ruby-webrick
2827
]
2928

29+
if platform?("debian")
30+
package "python3-inotify"
31+
else
32+
package "gamin"
33+
end
34+
3035
template "/etc/fail2ban/jail.d/00-default.conf" do
3136
source "jail.default.erb"
3237
owner "root"

0 commit comments

Comments
 (0)