net/ntopng: new datadir (#1179)

This commit is contained in:
Michael
2019-02-11 08:25:28 +01:00
committed by Franco Fichtner
parent f1b0cd7471
commit b3c27ee685
5 changed files with 31 additions and 5 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= ntopng
PLUGIN_VERSION= 1.1
PLUGIN_REVISION= 1
PLUGIN_VERSION= 1.2
PLUGIN_COMMENT= Traffic Analysis and Flow Collection
PLUGIN_DEPENDS= ntopng
PLUGIN_MAINTAINER= m.muenz@gmail.com
+20
View File
@@ -4,4 +4,24 @@ is based on libpcap and it has been written in a portable
way in order to virtually run on every Unix platform, MacOSX
and on Windows as well.
Plugin Changelog
================
1.2
* Changed data directory to avoid warning
* Make data directory persistant in MFS environments
1.1
* Add https support
1.0
* Initial release
* Allow to set a http port
* Allow user how to handle reverse lookups in ntopng
WWW: https://www.ntop.org/products/traffic-analysis/ntop/
@@ -4,8 +4,13 @@ mkdir -p /var/run/ntopng/
chmod 755 /var/run/ntopng
chown ntopng:ntopng /var/run/ntopng
mkdir -p /var/tmp/ntopng/
chmod 755 /var/tmp/ntopng
chown ntopng:wheel /var/tmp/ntopng
mkdir -p /var/db/ntopng/
chmod 755 /var/db/ntopng
chown ntopng:wheel /var/db/ntopng
if [ -d /var/tmp/ntopng ]; then
mv /var/tmp/ntopng/* /var/db/ntopng/
rm -rf /var/tmp/ntopng
fi
/usr/local/opnsense/scripts/OPNsense/Ntopng/generate_certs.php
@@ -5,3 +5,4 @@ ntopng_flags="/usr/local/etc/ntopng.conf"
{% else %}
ntopng_enable="NO"
{% endif %}
ntopng_var_mfs="/var/db/ntopng"
@@ -12,4 +12,5 @@
{% if helpers.exists('OPNsense.ntopng.general.dnsmode') and OPNsense.ntopng.general.dnsmode != '' %}
-n={{ OPNsense.ntopng.general.dnsmode }}
{% endif %}
-d=/var/db/ntopng
{% endif %}