banip: bugfix

* fix a stale pid file during package update

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2021-02-12 20:44:11 +01:00
parent a7523a9fab
commit e461c5e88c
No known key found for this signature in database
GPG key ID: 9D71CD547BFAE684
2 changed files with 4 additions and 3 deletions

View file

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=banip PKG_NAME:=banip
PKG_VERSION:=0.7.1 PKG_VERSION:=0.7.1
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0-or-later PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>

View file

@ -93,6 +93,7 @@ f_load()
f_ipset "destroy" f_ipset "destroy"
f_jsnup "disabled" f_jsnup "disabled"
f_rmbckp f_rmbckp
f_rmtmp
f_log "info" "banIP is currently disabled, please set the config option 'ban_enabled' to '1' to use this service" f_log "info" "banIP is currently disabled, please set the config option 'ban_enabled' to '1' to use this service"
exit 0 exit 0
fi fi
@ -112,12 +113,12 @@ f_dir()
mkdir -p "${dir}" mkdir -p "${dir}"
if [ "${?}" = "0" ] if [ "${?}" = "0" ]
then then
f_log "info" "directory '${dir}' created" f_log "debug" "directory '${dir}' created"
else else
f_log "err" "directory '${dir}' could not be created" f_log "err" "directory '${dir}' could not be created"
fi fi
else else
f_log "info" "directory '${dir}' is used" f_log "debug" "directory '${dir}' is used"
fi fi
} }