~ubuntu-branches/ubuntu/dapper/php5/dapper-proposed

« back to all changes in this revision

Viewing changes to debian/php5-cgi.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-5agt5xkcnt5q2kmt
Tags: 5.0.5-2ubuntu1
Resync with Debian, bringing in two security fixes, a file conflict fix,
and two 64-bit memory corruption and segfault fixes (no other changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# postrm script for #PACKAGE#
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
# summary of how this script can be called:
 
9
#        * <postrm> `remove'
 
10
#        * <postrm> `purge'
 
11
#        * <old-postrm> `upgrade' <new-version>
 
12
#        * <new-postrm> `failed-upgrade' <old-version>
 
13
#        * <new-postrm> `abort-install'
 
14
#        * <new-postrm> `abort-install' <old-version>
 
15
#        * <new-postrm> `abort-upgrade' <old-version>
 
16
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
 
17
# for details, see /usr/share/doc/packaging-manual/
 
18
 
 
19
case "$1" in
 
20
       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
21
 
 
22
 
 
23
        ;;
 
24
 
 
25
       purge)
 
26
                rm -rf /etc/php5/cgi
 
27
                if [ -d /etc/php5 ]; then
 
28
                        rmdir --ignore-fail-on-non-empty /etc/php5
 
29
                fi
 
30
        ;;
 
31
    *)
 
32
        echo "postrm called with unknown argument \`$1'" >&2
 
33
        exit 0
 
34
 
 
35
esac
 
36
 
 
37
# dh_installdeb will replace this with shell code automatically
 
38
# generated by other debhelper scripts.
 
39
 
 
40
#DEBHELPER#
 
41
 
 
42
exit 0