#!/bin/sh

case "$1" in
  configure*)

	ldconfig

	# Clean out old pre-apt cruft
	if [ -d /var/state/deity ] ; then
		rm -rf /var/state/deity
	fi

	if [ -d /var/cache/deity ] ; then
		rm -rf /var/cache/deity
	fi

	if [ -d /etc/deity ] ; then
		rm -rf /etc/deity
	fi
	;;
  *)
	;;
esac

exit 0
