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>
This commit is contained in:
Vladislav Grigoryev 2021-09-10 17:10:04 +03:00 committed by Etienne Champetier
parent 26988f905f
commit 57aab9f1d1
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