/mandos/release

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

« back to all changes in this revision

Viewing changes to debian/mandos-client.postrm

  • Committer: Teddy Hogeborn
  • Date: 2008-08-18 05:24:20 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080818052420-ab5eurrioz8n2qy6
* Makefile: Bug fix: fixed creation of man pages in "plugins.d".

* mandos-keygen Bug fix: make the --expire option modify
                KEYEXPIRE, not KEYCOMMENT.  Use the "--no-options"
                option to gpg when exporting keys from the temporary
                key ring files.

* mandos-keygen.xml (EXIT STATUS): Filled in.
  (ENVIRONMENT): New section, documenting use of TMPDIR.
  (FILES): Document use of key files and /tmp.
  (BUGS): Filled in.
  (EXAMPLE): Added two examples.
  (SECURITY): Added some text.

* plugins.d/password-prompt.xml (NOTES): Removed, since this is
                                         created automatically for
                                         footnotes.
  (ENVIRONMENT, FILES): Added empty sections.
  (EXAMPLES): Renamed to "EXAMPLE", as per man-pages(7).

* plugins.d/password-request.xml: Reordered sections.
  (ENVIRONMENT): New empty section.
  (EXAMPLES): Renamed to "EXAMPLE", as per man-pages(7).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
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
 
set -e
30
 
 
31
 
# Update the initial RAM file system image
32
 
update_initramfs()
33
 
{
34
 
    if [ -x /usr/sbin/update-initramfs ]; then
35
 
        update-initramfs -u -k all
36
 
    fi
37
 
}
38
 
 
39
 
case "$1" in
40
 
    remove)
41
 
        update_initramfs
42
 
        ;;
43
 
 
44
 
    purge)
45
 
        shred --remove /etc/keys/mandos/seckey.txt 2>/dev/null || :
46
 
        rm --force /etc/mandos/plugin-runner.conf \
47
 
            /etc/keys/mandos/pubkey.txt \
48
 
            /etc/keys/mandos/seckey.txt 2>/dev/null
49
 
        update_initramfs
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