diff options
author | doktornotor <notordoktor@gmail.com> | 2015-07-25 09:47:58 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-07-25 09:47:58 +0200 |
commit | c9d58b9c9a866b35d528a88089ffcab6fe333c6e (patch) | |
tree | 047f94fd35da4cd0b2059b0fb7f7de8e4a1f5cfb /config/ntopng | |
parent | 9196b0a78e64bb00f072a2ba3403f8cf249b1eee (diff) | |
download | pfsense-packages-c9d58b9c9a866b35d528a88089ffcab6fe333c6e.tar.gz pfsense-packages-c9d58b9c9a866b35d528a88089ffcab6fe333c6e.tar.bz2 pfsense-packages-c9d58b9c9a866b35d528a88089ffcab6fe333c6e.zip |
ntopng - force overwrite on decompression of GeoIP files
Diffstat (limited to 'config/ntopng')
-rw-r--r-- | config/ntopng/ntopng.xml | 3 |
1 files changed, 2 insertions, 1 deletions
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)); } } |