From: Jan Hoffmann Date: Sun, 16 May 2021 16:22:56 +0000 (+0200) Subject: vnstat2: update to version 2.7 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a9a6f50c03c62005c4b8bb8369713eef0e8b49b4;p=feed%2Fpackages.git vnstat2: update to version 2.7 Signed-off-by: Jan Hoffmann --- diff --git a/net/vnstat2/Makefile b/net/vnstat2/Makefile index 15e764d097..59fb065c23 100644 --- a/net/vnstat2/Makefile +++ b/net/vnstat2/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vnstat2 -PKG_VERSION:=2.6 +PKG_VERSION:=2.7 PKG_RELEASE:=1 PKG_SOURCE:=vnstat-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://humdi.net/vnstat -PKG_HASH:=89276e0a7281943edb554b874078278ad947dc312938a2451e03eb80679f7ff7 +PKG_HASH:=4c28a1d8bc03c2b6e7ab96c876e07dd8ea174b7cad73b7190ecb2b9501e83e9e PKG_LICENSE:=GPL-2.0-only PKG_LICENSE_FILES:=COPYING diff --git a/net/vnstat2/files/vnstat.init b/net/vnstat2/files/vnstat.init index 122f9aab58..9754e1507e 100644 --- a/net/vnstat2/files/vnstat.init +++ b/net/vnstat2/files/vnstat.init @@ -15,8 +15,9 @@ init_database() { local database_count="$(ls "$lib" 2>/dev/null | wc -l)" + # only init database when folder is empty, as it would prevent import of legacy databases if [ "$database_count" -eq "0" ]; then - /usr/sbin/vnstatd -n --noadd >/dev/null + /usr/sbin/vnstatd --initdb >/dev/null fi }