1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-15 03:43:53 +02:00

fail2ban: fix hotplug when disabled

Avoid restarting fail2ban by hotplug when the service is disabled.
Related issue: https://github.com/openwrt/packages/issues/16601

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 57aab9f1d1)
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
This commit is contained in:
Vladislav Grigoryev 2021-09-10 17:10:04 +03:00 committed by Etienne Champetier
parent a5109ac20b
commit cd82a36bac
2 changed files with 2 additions and 2 deletions

View 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)?

View File

@ -1,3 +1,3 @@
#!/bin/sh
/etc/init.d/fail2ban restart
/etc/init.d/fail2ban enabled && /etc/init.d/fail2ban restart
exit 0