cryptonas/debian/postrm

15 lines
324 B
Text
Raw Normal View History

#!/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
2005-12-01 19:22:05 +01:00
# return without error
true