summaryrefslogtreecommitdiffstats
path: root/network/ntop/doinst.sh
diff options
context:
space:
mode:
author Niels Horn2011-10-01 06:02:54 +0200
committer Robby Workman2011-10-12 04:20:24 +0200
commit382ea0feff2814b4d9516da94c53190d84e8ec13 (patch)
tree4d7b08ece37458ca910bf10ea4a77dc42c5aa036 /network/ntop/doinst.sh
parentcaa704088b18173dfe4c056c97a35859db73cbba (diff)
downloadslackbuilds-382ea0feff2814b4d9516da94c53190d84e8ec13.tar.gz
network/ntop: Updated for version 4.1.0.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/ntop/doinst.sh')
-rw-r--r--network/ntop/doinst.sh24
1 files changed, 17 insertions, 7 deletions
diff --git a/network/ntop/doinst.sh b/network/ntop/doinst.sh
index d7977216d6..17fa8ad81f 100644
--- a/network/ntop/doinst.sh
+++ b/network/ntop/doinst.sh
@@ -10,12 +10,22 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-# Keep same perms on rc.ntop.new:
-if [ -e etc/rc.d/rc.ntop ]; then
- cp -a etc/rc.d/rc.ntop etc/rc.d/rc.ntop.new.incoming
- cat etc/rc.d/rc.ntop.new > etc/rc.d/rc.ntop.new.incoming
- mv etc/rc.d/rc.ntop.new.incoming etc/rc.d/rc.ntop.new
-fi
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
-config etc/rc.d/rc.ntop.new
+preserve_perms etc/rc.d/rc.ntop.new
config etc/logrotate.d/ntop.new
+config etc/ntop/specialMAC.txt.gz.new
+config etc/ntop/ntop-cert.pem.new
+config etc/ntop/GeoIPASNum.dat.new
+config etc/ntop/GeoLiteCity.dat.new
+config etc/ntop/etter.finger.os.gz.new
+config etc/ntop/oui.txt.gz.new