1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/sh
set -e
case "$1" in
purge)
rm -f /etc/shadowsocks-libev/config.json
if test ! -e /etc/shadowsocks-libev ; then
# If the config directory does not exist, do nothing
:
else
if test -d /etc/shadowsocks-libev ; then
# If it is an empty directory, remove it
rmdir /etc/shadowsocks-libev || true
fi
fi
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
exit 0
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 0
;;
esac
#DEBHELPER#
exit 0
|