2005-11-30 03:39:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2006-05-30 09:08:35 +00:00
|
|
|
if test "$1" = "purge" && getent passwd cryptobox 2>/dev/null >/dev/null \
|
2006-05-15 09:41:00 +00:00
|
|
|
&& test "$(cd ~cryptobox;pwd)" = /var/lib/cryptobox
|
|
|
|
then echo "Removing user 'cryptobox' ..."
|
|
|
|
userdel -r cryptobox
|
|
|
|
fi
|
2005-12-12 22:32:22 +00:00
|
|
|
|
2006-05-30 09:08:35 +00:00
|
|
|
if [ "$1" = "purge" ] ; then
|
|
|
|
update-rc.d cryptobox remove >/dev/null || exit $?
|
|
|
|
fi
|
|
|
|
|
2005-12-01 18:22:05 +00:00
|
|
|
# return without error
|
|
|
|
true
|