flectra/debian/postrm

32 lines
574 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
2018-01-17 13:08:43 +01:00
FLECTRA_LIB_DIR=/var/lib/flectra
FLECTRA_USER="flectra"
FLECTRA_GROUP="flectra"
case "${1}" in
remove)
2018-01-17 13:08:43 +01:00
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)
2018-01-17 13:08:43 +01:00
if [ -d "$FLECTRA_LIB_DIR" ]; then
rm -rf $FLECTRA_LIB_DIR
fi
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
esac
#DEBHELPER#
exit 0