mirror of
https://github.com/novatiq/packages.git
synced 2026-04-24 21:14:40 +01:00
banip: bugfix
* fix a stale pid file during package update Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=banip
|
||||
PKG_VERSION:=0.7.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||
|
||||
|
||||
@@ -93,6 +93,7 @@ f_load()
|
||||
f_ipset "destroy"
|
||||
f_jsnup "disabled"
|
||||
f_rmbckp
|
||||
f_rmtmp
|
||||
f_log "info" "banIP is currently disabled, please set the config option 'ban_enabled' to '1' to use this service"
|
||||
exit 0
|
||||
fi
|
||||
@@ -112,12 +113,12 @@ f_dir()
|
||||
mkdir -p "${dir}"
|
||||
if [ "${?}" = "0" ]
|
||||
then
|
||||
f_log "info" "directory '${dir}' created"
|
||||
f_log "debug" "directory '${dir}' created"
|
||||
else
|
||||
f_log "err" "directory '${dir}' could not be created"
|
||||
fi
|
||||
else
|
||||
f_log "info" "directory '${dir}' is used"
|
||||
f_log "debug" "directory '${dir}' is used"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user