Browse Source

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>
lilik-openwrt-22.03
Vladislav Grigoryev 3 years ago
committed by Etienne Champetier
parent
commit
57aab9f1d1
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/fail2ban/Makefile
  2. +1
    -1
      net/fail2ban/files/firewall.fail2ban

+ 1
- 1
net/fail2ban/Makefile View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=fail2ban PKG_NAME:=fail2ban
PKG_VERSION:=0.11.2 PKG_VERSION:=0.11.2
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/fail2ban/fail2ban/tar.gz/$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/fail2ban/fail2ban/tar.gz/$(PKG_VERSION)?


+ 1
- 1
net/fail2ban/files/firewall.fail2ban View File

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

Loading…
Cancel
Save