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:
parent
26988f905f
commit
57aab9f1d1
2 changed files with 2 additions and 2 deletions
|
@ -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,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…
Reference in a new issue