~libravatar/libravatar/master

443 by Francois Marier
Create a new libravatar-master package
1
#!/bin/sh
2
#
3
# see: dh_installdeb(1)
4
5
set -e
6
7
# summary of how this script can be called:
8
#        * <postrm> `remove'
9
#        * <postrm> `purge'
10
#        * <old-postrm> `upgrade' <new-version>
11
#        * <new-postrm> `failed-upgrade' <old-version>
12
#        * <new-postrm> `abort-install'
13
#        * <new-postrm> `abort-install' <old-version>
14
#        * <new-postrm> `abort-upgrade' <old-version>
15
#        * <disappearer's-postrm> `disappear' <overwriter>
16
#          <overwriter-version>
17
# for details, see http://www.debian.org/doc/debian-policy/ or
18
# the debian-policy package
19
20
AVATAR_ROOT=/var/lib/libravatar/avatar
21
MASTER_ROOT=/var/lib/libravatar/master
22
23
case "$1" in
663 by Francois Marier
Add working deployment functions to the fabfile
24
    remove|abort-install|disappear)
443 by Francois Marier
Create a new libravatar-master package
25
        deluser libravatar-master || true
26
    ;;
27
28
    purge)
782.1.1 by Francois Marier
Reverse the mirror sync direction (closes: #947796)
29
        rm -f ${MASTER_ROOT}/.ssh/authorized_keys
443 by Francois Marier
Create a new libravatar-master package
30
        rmdir -p ${MASTER_ROOT}/.ssh/ || true
31
    ;;
32
663 by Francois Marier
Add working deployment functions to the fabfile
33
    upgrade|failed-upgrade|abort-upgrade)
34
        # Nothing to do
35
    ;;
36
443 by Francois Marier
Create a new libravatar-master package
37
    *)
38
        echo "postrm called with unknown argument \`$1'" >&2
39
        exit 1
40
    ;;
41
esac
42
43
# dh_installdeb will replace this with shell code automatically
44
# generated by other debhelper scripts.
45
46
#DEBHELPER#
47
48
exit 0