]> eyrie.org Git - kerberos/krb5-strength.git/blob - debian/postrm
Change CrackLib tests for system CrackLib
[kerberos/krb5-strength.git] / debian / postrm
1 #!/bin/sh
2
3 set -e
4
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"
10     done
11     deluser --quiet --system _history >/dev/null || true
12 fi
13
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
18     fi
19 fi
20
21 #DEBHELPER#
22
23 exit 0