summaryrefslogtreecommitdiff
path: root/debian/apache2.2-common.postinst
diff options
context:
space:
mode:
authorStefan Fritsch <sf@debian.org>2009-07-25 20:59:40 +0000
committerStefan Fritsch <sf@sfritsch.de>2012-01-02 10:37:01 +0100
commit84017ee63f8d05ca6f5bb509137e5fd1e737364b (patch)
tree95d383dcff44cbb709dc803a61c596d364800675 /debian/apache2.2-common.postinst
parent54ee5b317ee04be06c6c59474b5bacd5320b91fc (diff)
downloadapache2-84017ee63f8d05ca6f5bb509137e5fd1e737364b.tar.gz
* Remove 2.0 -> 2.2 upgrade logic from maintainer scripts.
* Remove other_vhosts_access.log on package purge. git-svn-id: svn+ssh://svn.debian.org/svn/pkg-apache/trunk/apache2@995 01b336ce-410b-0410-9a02-a0e7f243c266
Diffstat (limited to 'debian/apache2.2-common.postinst')
-rw-r--r--debian/apache2.2-common.postinst41
1 files changed, 1 insertions, 40 deletions
diff --git a/debian/apache2.2-common.postinst b/debian/apache2.2-common.postinst
index d9a6a65b..ef46ce07 100644
--- a/debian/apache2.2-common.postinst
+++ b/debian/apache2.2-common.postinst
@@ -4,34 +4,12 @@ if [ "$1" != "configure" ]; then
exit 0
fi
-if [ -e /usr/sbin/apache2 ]; then
- if [ "`dpkg-statoverride --list /usr/sbin/apache2`" = "" ]; then
- chmod +x /usr/sbin/apache2
- else
- chmod `dpkg-statoverride --list /usr/sbin/apache2 | cut -f 3` /usr/sbin/apache2
- fi
-fi
-
mod_is_enabled() {
test -L /etc/apache2/mods-enabled/$1.load
}
-# Detect whether this is a new install or an upgrade.
-# Ordinarily one just checks $2, but since we renamed apache2-common to
-# apache2.2-common, we have to be more devious.
-if [ -n "$2" ]; then
- UPGRADE=from_2_2
-elif [ -e /etc/apache2/ports.conf.dpkg-apache2.2-common.existed ] ||
- [ -n "$(ls /etc/apache2/sites-enabled/)" ]; then
- UPGRADE=from_2_0
-else
- UPGRADE=new_install
-fi
-
-
-
#set up default site and dummy error and access logs
-if [ $UPGRADE = new_install ]; then
+if [ -z "$2" ]; then
if [ ! -L /etc/apache2/sites-enabled/000-default -a \
! -f /etc/apache2/sites-enabled/000-default ]; then
a2ensite -q default
@@ -64,21 +42,6 @@ if dpkg --compare-versions "$2" lt 2.2.3-3.1; then
a2enmod -q authz_host
fi
-if [ $UPGRADE = from_2_0 ]; then
- # Module replacements from previous versions of apache2
- if mod_is_enabled proxy; then
- a2enmod -q proxy_http
- a2enmod -q disk_cache
- fi
- if mod_is_enabled imap; then
- a2dismod -q imap
- a2enmod -q imagemap
- fi
- if mod_is_enabled auth_ldap; then
- a2dismod -q auth_ldap
- a2enmod -q authnz_ldap
- fi
-fi
if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.2.4-2; then
echo -n activating new config files ...
@@ -104,11 +67,9 @@ if dpkg --compare-versions "$2" lt 2.2.7-1~0; then
fi
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
-rm -f /etc/apache2/ports.conf.dpkg-apache2.2-common.existed
[ -f /etc/apache2/httpd.conf ] || touch /etc/apache2/httpd.conf