/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/mandos-client.postrm

  • Committer: Björn Påhlsson
  • Date: 2008-07-20 02:52:20 UTC
  • Revision ID: belorn@braxen-20080720025220-r5u0388uy9iu23h6
Added following support:
Pluginbased client handler
rewritten Mandos client
       Avahi instead of udp server discovery
       openpgp encrypted key support
Passprompt stand alone application for direct console input
Added logging for Mandos server

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
# This script can be called in the following ways:
3
 
#
4
 
# After the package was removed:
5
 
#       <postrm> remove
6
 
#
7
 
# After the package was purged:
8
 
#       <postrm> purge
9
 
#
10
 
# After the package was upgraded:
11
 
#       <old-postrm> upgrade <new-version>
12
 
# if that fails:
13
 
#       <new-postrm> failed-upgrade <old-version>
14
 
#
15
 
#
16
 
# After all of the packages files have been replaced:
17
 
#       <postrm> disappear <overwriting-package> <version>
18
 
#
19
 
#
20
 
# If preinst fails during install:
21
 
#       <new-postrm> abort-install
22
 
#
23
 
# If preinst fails during upgrade of removed package:
24
 
#       <new-postrm> abort-install <old-version>
25
 
#
26
 
# If preinst fails during upgrade:
27
 
#       <new-postrm> abort-upgrade <old-version>
28
 
 
29
 
 
30
 
# Update the initramfs
31
 
update_initramfs()
32
 
{
33
 
        if which update-initramfs >/dev/null 2>&1; then
34
 
                update-initramfs -u
35
 
        fi
36
 
}
37
 
 
38
 
 
39
 
case "$1" in
40
 
    remove)
41
 
        update_initramfs
42
 
        ;;
43
 
 
44
 
    purge)
45
 
        shred --remove /etc/keys/mandos/seckey.txt || :
46
 
        rm --force /etc/mandos/plugin-runner.conf \
47
 
            /etc/keys/mandos/pubkey.txt \
48
 
            /etc/keys/mandos/seckey.txt
49
 
        rmdir /etc/keys/mandos /etc/mandos/plugins.d /etc/mandos || :
50
 
        ;;
51
 
    upgrade|failed-upgrade|disappear|abort-install|abort-upgrade)
52
 
        ;;
53
 
 
54
 
    *)
55
 
        echo "$0 called with unknown argument \`$1'" 1>&2
56
 
        exit 1
57
 
        ;;
58
 
esac
59
 
 
60
 
#DEBHELPER#
61
 
 
62
 
exit 0