#!/bin/sh
# postrm script for fookebox

set -e

# handle updates from older package versions
if dpkg-maintscript-helper supports rm_conffile ; then
	dpkg-maintscript-helper rm_conffile \
		/etc/fookebox/site.conf.php 0.4.99-1 -- "$@"
	dpkg-maintscript-helper rm_conffile \
		/etc/fookebox/status.conf.php 0.4.99-1 -- "$@"
fi

# Remove database if package is being purged
if [ "$1" = "purge" ] ; then
	rm -f /var/lib/fookebox/fookebox.sqlite
fi

#DEBHELPER#

exit 0
