cryptonas/debian/postrm

12 lines
254 B
Bash
Executable file

#!/bin/sh
if test "$1" = "purge" && getent passwd cryptobox 2>/dev/null >/dev/null \
&& test "$(cd ~cryptobox;pwd)" = /var/cache/cryptobox
then echo "Removing user 'cryptobox' ..."
userdel -r cryptobox
fi
#DEBHELPER#
# return without error
true