#!/bin/sh

# Source debconf library.
. /usr/share/debconf/confmodule


if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule ]
then
	rm /m23/etc/.htpasswd
	# Remove my changes to the db.
	db_purge
fi


# Delete the cron entry for automatically removing old APT lists files
sed -i '/rmOldM23VarCacheM23aptLists/d' /etc/crontab
/etc/init.d/cron restart


db_stop