vnstat2: update to version 2.7
authorJan Hoffmann <jan@3e8.eu>
Sun, 16 May 2021 16:22:56 +0000 (18:22 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 18 May 2021 18:51:03 +0000 (21:51 +0300)
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
net/vnstat2/Makefile
net/vnstat2/files/vnstat.init

index 15e764d097844c9381773db80a13335d326e4af0..59fb065c2395d457d4d2375ef5abb92980dc1872 100644 (file)
@@ -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
index 122f9aab589da90983cec6903fbee2267ee902cf..9754e1507eb43e1eebf3c7e2fb2c32218ac787f4 100644 (file)
@@ -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
 }