~ubuntu-branches/debian/sid/libapache2-mod-python/sid

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2013-06-28 13:13:39 UTC
  • mfrom: (8.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130628131339-3zcvgdy52q8794ay
Tags: 3.3.1-11
* Team upload.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

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