summaryrefslogtreecommitdiff
path: root/debian/apache2.2-common.postinst
diff options
context:
space:
mode:
authorStefan Fritsch <sf@debian.org>2007-07-03 21:02:55 +0000
committerStefan Fritsch <sf@sfritsch.de>2012-01-02 10:36:44 +0100
commit74b8050b82434f672311991ef4fca4ef08ac5407 (patch)
tree03e16ad822aceacda9c79f23f5c2cc5c9caefb5c /debian/apache2.2-common.postinst
parent8c1782d8c697e3f2e21af6ef44c6f502fd55b441 (diff)
downloadapache2-74b8050b82434f672311991ef4fca4ef08ac5407.tar.gz
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
Diffstat (limited to 'debian/apache2.2-common.postinst')
-rw-r--r--debian/apache2.2-common.postinst11
1 files changed, 11 insertions, 0 deletions
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