2 # postinst script for darkstat
4 . /usr/share/debconf/confmodule
10 if [ "$2" != "" ]; then
11 if dpkg --compare-versions "$2" lt "3.0.707-1"; then
12 # If the user answer "No" at the debconf question db_purge-2.5-1
14 dbfile="/var/lib/darkstat/darkstat.db"
15 if [ -f $dbfile ]; then
16 echo -n "Removing darkstat database file $dbfile..."
22 chown -R nobody /var/lib/darkstat
25 abort-upgrade|abort-remove|abort-deconfigure)
30 echo "postinst called with unknown argument \`$1'" >&2