2005-11-30 04:39:17 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2006-05-30 11:08:35 +02:00
|
|
|
if test "$1" = "purge" && getent passwd cryptobox 2>/dev/null >/dev/null \
|
2006-05-15 11:41:00 +02:00
|
|
|
&& test "$(cd ~cryptobox;pwd)" = /var/lib/cryptobox
|
|
|
|
then echo "Removing user 'cryptobox' ..."
|
|
|
|
userdel -r cryptobox
|
|
|
|
fi
|
2005-12-12 23:32:22 +01:00
|
|
|
|
2006-05-30 11:08:35 +02:00
|
|
|
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
|