5 # Purge the password history database and remove the _history user and group
6 # on package purge. This user should not be used for any other purpose.
7 if [ "$1" = purge ]; then
8 for file in history.db history.db.lock lengths.db lengths.db.lock; do
9 rm -f "/var/lib/heimdal-history/$file"
11 deluser --quiet --system _history >/dev/null || true
14 # Remove the directory for the password history database on remove if empty.
15 if [ "$1" = purge ] || [ "$1" = remove ]; then
16 if [ -d /var/lib/heimdal-history ]; then
17 rmdir --ignore-fail-on-non-empty /var/lib/heimdal-history