From 838a67e8432d882b7f8c3d4a75564ed89dccf386 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 27 Jul 2015 20:11:21 +0200 Subject: 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 ``` --- config/ntopng/ntopng.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') 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") { -- cgit v1.2.3