~ubuntu-branches/ubuntu/maverick/libapache2-mod-python/maverick

« back to all changes in this revision

Viewing changes to debian/libapache2-mod-python.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Debian Python Modules Team, Sandro Tosi
  • Date: 2008-08-11 00:00:01 UTC
  • mfrom: (1.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080811000001-fuo2p4nmf23k5yen
Tags: 3.3.1-5
[ Sandro Tosi ]
* debian/po/eu.po
  - updated Basque debconf translation; thanks to Xabier Bilbao;
    Closes: #492409

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
 
3
3
if [ "$1" = "remove" -o "$1" = "purge" ]; then
4
 
    if [ -L /etc/apache2/mods-enabled/mod_python.load ]; then
5
 
        rm -f /etc/apache2/mods-enabled/mod_python.load
6
 
    fi
 
4
    if [ -L /etc/apache2/mods-enabled/python.load ]; then
 
5
        rm -f /etc/apache2/mods-enabled/python.load
 
6
    fi
 
7
fi
 
8
 
 
9
# mod_python.load renamed to python.load in 3.3.1-3
 
10
if dpkg --compare-versions "$2" lt-nl "3.3.1-3"; then
 
11
    # downgrading to < 3.3.1-3 -- we have to restore pseudo conffile
 
12
    if [ ! -e /etc/apache2/mods-available/mod_python.load ]; then
 
13
        echo "LoadModule python_module /usr/lib/apache2/modules/mod_python.so" > /etc/apache2/mods-available/mod_python.load
 
14
    fi
 
15
elif [ -e /etc/apache2/mods-available/mod_python.load ]; then
 
16
    rm -f /etc/apache2/mods-available/mod_python.load
7
17
fi
8
18
 
9
19
#DEBHELPER#