No subject


Thu Aug 20 06:46:28 UTC 2009


if [ "$1" = "purge" -o "$1" = "remove" ]; then
    # remove pseudo conffile
    test -e /etc/apache2/mods-available/wsgi.load && rm -f /etc/apache2/mods-available/wsgi.load
fi

Here you are removing the conffile /etc/apache2/mods-available/wsgi.load
on remove, not only on purge.

Also, there is no need to remove conffiles yourself as you do below:

if [ "$1" = "purge" -a -e /etc/apache2/mods-available/wsgi.conf ]; then
    # remove conffile
    rm -f /etc/apache2/mods-available/wsgi.conf
fi

dpkg does that for you.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are





More information about the Python-modules-team mailing list