summaryrefslogtreecommitdiff
path: root/veracrypt/debian/prerm
blob: baa2e73200a80edde3194fdd6ce1a09863c3a696 (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." && exit 1
        exit 0
    ;;

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

#DEBHELPER#

exit 0
bgstack15