You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
525 B
29 lines
525 B
#!/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
|