flectra/debian/postrm
2018-01-17 04:08:43 -08:00

32 lines
574 B
Bash

#!/bin/sh
set -e
FLECTRA_LIB_DIR=/var/lib/flectra
FLECTRA_USER="flectra"
FLECTRA_GROUP="flectra"
case "${1}" in
remove)
deluser --quiet --system $FLECTRA_USER || true
delgroup --quiet --system --only-if-empty $FLECTRA_GROUP || true
if [ -d "$FLECTRA_LIB_DIR" ]; then
rm -rf $FLECTRA_LIB_DIR
fi
;;
purge)
if [ -d "$FLECTRA_LIB_DIR" ]; then
rm -rf $FLECTRA_LIB_DIR
fi
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
esac
#DEBHELPER#
exit 0