#!/bin/sh -e

case "$1" in
    configure)
	# continue below
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
	exit 0
    ;;

    *)
	echo "postinst called with unknown argument \`$1'" >&2
	exit 0
    ;;
esac

umask 022

update-rc.d ntop defaults 93 >/dev/null
/etc/init.d/ntop defaults
chown -R nobody /usr/local/var/ntop/rrd
/etc/init.d/ntop start


exit 0
