cryptonas/debian/postrm
lars 72afa14f87 fixed some debian policy violations
replaced dumpe2fs by blkid for determining the uuid of a device
2006-05-30 09:08:35 +00:00

15 lines
324 B
Bash
Executable file

#!/bin/sh
if test "$1" = "purge" && getent passwd cryptobox 2>/dev/null >/dev/null \
&& test "$(cd ~cryptobox;pwd)" = /var/lib/cryptobox
then echo "Removing user 'cryptobox' ..."
userdel -r cryptobox
fi
if [ "$1" = "purge" ] ; then
update-rc.d cryptobox remove >/dev/null || exit $?
fi
# return without error
true