From 80e6e0bcbe7c0eac1fcc014317be200d167d114f Mon Sep 17 00:00:00 2001 From: Jan Hoffmann Date: Sun, 16 May 2021 18:22:56 +0200 Subject: [PATCH] vnstat2: update to version 2.7 Signed-off-by: Jan Hoffmann --- net/vnstat2/Makefile | 4 ++-- net/vnstat2/files/vnstat.init | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/net/vnstat2/Makefile b/net/vnstat2/Makefile index 15e764d09..59fb065c2 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 122f9aab5..9754e1507 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 }