summaryrefslogtreecommitdiff
path: root/veracrypt/debian/prerm
blob: 887e78f9a1886d4a0b072425750c12eef94ee57d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

case "$1" in
    remove|upgrade|deconfigure|failed-upgrade)
        (mount | grep -q veracrypt_aux_mnt) &&
        echo "Error: all VeraCrypt volumes must be unmounted before upgrade." >&2 && exit 1
        exit 0
    ;;

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

#DEBHELPER#

exit 0
bgstack15