aboutsummaryrefslogtreecommitdiffstats
path: root/config/ntopng
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-07-27 20:11:21 +0200
committerdoktornotor <notordoktor@gmail.com>2015-07-27 20:11:21 +0200
commit838a67e8432d882b7f8c3d4a75564ed89dccf386 (patch)
tree8ca96e20d40193af2602c40b22980bdce9e436b7 /config/ntopng
parent95daa898f2f96e81eb6f912c0d84f62c8e98f306 (diff)
downloadpfsense-packages-838a67e8432d882b7f8c3d4a75564ed89dccf386.tar.gz
pfsense-packages-838a67e8432d882b7f8c3d4a75564ed89dccf386.tar.bz2
pfsense-packages-838a67e8432d882b7f8c3d4a75564ed89dccf386.zip
ntopng - need to create the target_dir before symlinking
The target directory does not exist on reinstall. Need to create it to avoid these errors: ``` Starting package ntopng... Warning: symlink(): No such file or directory in /etc/inc/pkg-utils.inc(423) : eval()'d code on line 159 Warning: symlink(): No such file or directory in /etc/inc/pkg-utils.inc(423) : eval()'d code on line 159 Warning: symlink(): No such file or directory in /etc/inc/pkg-utils.inc(423) : eval()'d code on line 159 Warning: symlink(): No such file or directory in /etc/inc/pkg-utils.inc(423) : eval()'d code on line 159 ```
Diffstat (limited to 'config/ntopng')
-rw-r--r--config/ntopng/ntopng.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/ntopng/ntopng.xml b/config/ntopng/ntopng.xml
index 055f54c0..dcb3f2b7 100644
--- a/config/ntopng/ntopng.xml
+++ b/config/ntopng/ntopng.xml
@@ -284,6 +284,8 @@
$source_dir = "/usr/local/share/ntopng";
}
+ safe_mkdir($target_dir, 0755);
+
foreach(glob("{$source_dir}/Geo*.dat*") as $geofile) {
/* Decompress if needed. */
if (substr($geofile, -3, 3) == ".gz") {