fail2ban: fix hotplug when disabled
authorVladislav Grigoryev <redacted>
Fri, 10 Sep 2021 14:10:04 +0000 (17:10 +0300)
committerEtienne Champetier <redacted>
Fri, 10 Sep 2021 15:23:17 +0000 (11:23 -0400)
Avoid restarting fail2ban by hotplug when the service is disabled.
Related issue: https://github.com/openwrt/packages/issues/16601

Signed-off-by: Vladislav Grigoryev <redacted>
net/fail2ban/Makefile
net/fail2ban/files/firewall.fail2ban

index 1988144394cd0d1363ed10ea16cd2a3d567a304f..6f81556fe40773fb36f77de9b746dc7cbacbc4f5 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fail2ban
 PKG_VERSION:=0.11.2
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/fail2ban/fail2ban/tar.gz/$(PKG_VERSION)?
index 99507dab1ce76c184f40e9394b71233d97c70644..4d2062fc28440048bc6b9787b1593a559e2d14a1 100644 (file)
@@ -1,3 +1,3 @@
 #!/bin/sh
-/etc/init.d/fail2ban restart
+/etc/init.d/fail2ban enabled && /etc/init.d/fail2ban restart
 exit 0
git clone https://git.99rst.org/PROJECT