banip: bugfix
authorDirk Brenken <[email protected]>
Fri, 12 Feb 2021 19:44:11 +0000 (20:44 +0100)
committerDirk Brenken <[email protected]>
Fri, 12 Feb 2021 19:44:11 +0000 (20:44 +0100)
* fix a stale pid file during package update

Signed-off-by: Dirk Brenken <[email protected]>
net/banip/Makefile
net/banip/files/banip.sh

index 392f42e4706bc8f87c08bb2e2de06d3390068576..f70bdb08e6f71cef3f6254e3fe70b537ca9ff77e 100644 (file)
@@ -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 <[email protected]>
 
index aca1c8538a09fc179bdb0747a2156e5965dc6246..3b78e03d0b3f7ebfa15c51d0d1e9410923f409a4 100755 (executable)
@@ -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
 }