~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to debian/apache2.2-common.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
# This is an evil hack around the fact that dpkg is unpacking in the
 
4
# wrong order causing "stop" to fail.
 
5
 
 
6
if [ -z "$2" ] && [ -e /usr/sbin/apache2 ]; then
 
7
    if [ -x "/etc/init.d/apache2" ]; then
 
8
        if [ -x /usr/sbin/invoke-rc.d ]; then
 
9
                invoke-rc.d apache2 stop || true
 
10
        else
 
11
                /etc/init.d/apache2 stop || true
 
12
        fi
 
13
    fi
 
14
    chmod -x /usr/sbin/apache2
 
15
fi
 
16
 
 
17
# YAY, MORE EVILNESS
 
18
rm -f /var/lib/dpkg/info/apache2-common.postrm
 
19
 
 
20
#DEBHELPER#