13 lines
312 B
Bash
Executable file
13 lines
312 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# remove symlinks in /etc/rc?.d
|
|
[ "$1" = "purge" ] && update-rc.d cryptobox remove
|
|
|
|
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
|
|
|
|
# return without error
|
|
true
|