vnstat: fix errormessage at first boot
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 21 May 2019 18:36:16 +0000 (20:36 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 21 May 2019 18:36:16 +0000 (20:36 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/common/vnstat
lfs/vnstat

index faabf47..d5b56a6 100644 (file)
@@ -9,3 +9,5 @@ usr/bin/vnstati
 #usr/share/man/man1/vnstati.1
 #usr/share/man/man1/vnstat.1
 #var/lib/vnstat
+#var/log/vnstat
+var/log/vnstat/tag
index a61bc5e..b1a17ce 100644 (file)
@@ -85,5 +85,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        sed -i 's|/var/lib/vnstat|/var/log/vnstat|g' /etc/vnstat.conf
        sed -i 's|/var/log/vnstat/vnstat.log|/var/log/vnstat.log|g' /etc/vnstat.conf
        sed -i 's|/var/run/vnstat/vnstat.pid|/var/run/vnstat.pid|g' /etc/vnstat.conf
+
+       mkdir -p /var/log/vnstat
+       touch /var/log/vnstat/tag
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)