From c9d58b9c9a866b35d528a88089ffcab6fe333c6e Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sat, 25 Jul 2015 09:47:58 +0200 Subject: ntopng - force overwrite on decompression of GeoIP files --- config/ntopng/ntopng.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/ntopng') diff --git a/config/ntopng/ntopng.xml b/config/ntopng/ntopng.xml index 225b3941..055f54c0 100644 --- a/config/ntopng/ntopng.xml +++ b/config/ntopng/ntopng.xml @@ -287,7 +287,8 @@ foreach(glob("{$source_dir}/Geo*.dat*") as $geofile) { /* Decompress if needed. */ if (substr($geofile, -3, 3) == ".gz") { - mwexec("/usr/bin/gzip -d " . escapeshellarg($geofile)); + // keep -f here, otherwise the files will not get updated + mwexec("/usr/bin/gzip -d -f " . escapeshellarg($geofile)); } } -- cgit v1.2.3