mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
30 lines
525 B
Bash
30 lines
525 B
Bash
#!/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
|