aboutsummaryrefslogtreecommitdiff
path: root/debian/naskpass.postrm
blob: 0963e23fd18f6c7a076bea0e2b8492a9d959f352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# postrm script for naskpass
#
# see: dh_installdeb(1)

set -e


. /usr/share/debconf/confmodule

case "$1" in
    purge)
        rm -f /etc/initramfs-tools/etc/ssh/authorized_keys
        rm -f /etc/initramfs-tools/etc/ssh/ssh_host_dsa_key
        rm -f /etc/initramfs-tools/etc/ssh/ssh_host_dsa_key.pub
        rm -f /etc/initramfs-tools/etc/ssh/ssh_host_rsa_key
        rm -f /etc/initramfs-tools/etc/ssh/ssh_host_rsa_key.pub
    ;;
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0