summaryrefslogtreecommitdiffstats
path: root/debian/cryptsetup-nuke-password.postrm
blob: c558aba0c0f8bde37ef093f8f092509fa5c1fa7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

if [ "$1" = "remove" ]; then
    dpkg-divert --rename --package cryptsetup-nuke-password \
                        --divert /usr/lib/cryptsetup/askpass.cryptsetup \
                        --remove /usr/lib/cryptsetup/askpass
elif [ "$1" = "purge" ]; then
    rm -rf /etc/cryptsetup-nuke-password
fi

#DEBHELPER#