#!/bin/sh
#
# Debian prerm script for dwww.
# "@(#)dwww:$Id: prerm,v 1.4 1997/03/22 23:57:59 jim Exp $"
#

set -e

if [ "$1" != upgrade ]
then
	/usr/sbin/dwwwconfig --auto --remove
else
	# Remove these so that they will be rebuilt in postinst
	rm -rf /var/lib/dwww/*
fi
