From 74b8050b82434f672311991ef4fca4ef08ac5407 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 3 Jul 2007 21:02:55 +0000 Subject: Move module specific configuration from apache2.conf to mods-available/*conf git-svn-id: svn+ssh://svn.debian.org/svn/pkg-apache/trunk/apache2@410 01b336ce-410b-0410-9a02-a0e7f243c266 --- debian/apache2.2-common.postinst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'debian/apache2.2-common.postinst') diff --git a/debian/apache2.2-common.postinst b/debian/apache2.2-common.postinst index 16fd0ec4..3b5b80ad 100644 --- a/debian/apache2.2-common.postinst +++ b/debian/apache2.2-common.postinst @@ -82,6 +82,17 @@ if [ $UPGRADE = from_2_0 ]; then fi fi +if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.2.4-2; then + echo -n activating new config files ... + for a in actions alias autoindex info mime negotiation setenvif status ; do + if mod_is_enabled $a && [ ! -e /etc/apache2/mods-enabled/$a.conf ] ; then + ln -sf ../mods-available/$a.conf /etc/apache2/mods-enabled/$a.conf + echo -n " $a.conf" + fi + done + echo " done." +fi + rm -f /etc/apache2/ports.conf.dpkg-apache2.2-common.old rm -f /etc/default/apache2.dpkg-apache2.2-common.old rm -f /etc/apache2/conf.d/charset.dpkg-apache2.2-common.old -- cgit v1.2.3