#! /bin/sh
#
# debian.postrm
#		Remove the ssl module.
#
# Version:	debian.postrm  1.10  28-Nov-2000  miquels@cistron.nl
#

pkg=libapache-auth-radius
apa=/etc/apache

purge()
{
	: Nothing..
}

remove()
{
	#
	#	Remove the LoadModule line from httpd.conf
	#
	if grep -q '^LoadModule *radius_auth_module' $apa/httpd.conf
	then
		cp -a $apa/httpd.conf $apa/httpd.conf.0
		sed -e 's/^\(LoadModule *radius_auth_module .*\)$/# \1/' \
			< $apa/httpd.conf.0 > $apa/httpd.conf
	fi
}

umask 022
case "$1" in
	purge)
		purge
		exit 0
		;;
	remove)
		remove
		exit 0
		;;
	upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
		exit 0
		;;
	*)
		echo "$0: unknown action \"$1\""
		exit 0
		;;
esac

exit 0

