cryptonas/debian/postrm

14 lines
312 B
Plaintext
Raw Normal View History

#!/bin/sh
# remove symlinks in /etc/rc?.d
[ "$1" = "purge" ] && update-rc.d cryptobox remove
2005-12-01 19:22:05 +01:00
if test "$1" = "purge" && getent passwd cryptobox &>/dev/null \
&& test "$(cd ~cryptobox;pwd)" = /var/lib/cryptobox
then echo "Removing user 'cryptobox' ..."
userdel -r cryptobox
fi
2005-12-01 19:22:05 +01:00
# return without error
true