aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/deb/meshbay-common/DEBIAN/prerm
blob: e7b665b39fc6c6d4f416b8afe04758990922d376 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

# Bytecode the postinst compiled is not the package's: removed here, so that
# dpkg can remove the directories it was written into.
case "$1" in
    remove|upgrade|deconfigure)
        find /opt/meshbay-common/venv -depth -type d -name __pycache__ \
            -exec rm -rf {} + 2>/dev/null || true
        ;;
esac

#DEBHELPER#