
| Current Path : /var/lib/dpkg/info/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/lib/dpkg/info/shadowsocks-libev.postrm |
#!/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 # Automatically added by dh_installinit/12.9ubuntu1 if [ "$1" = "purge" ] ; then update-rc.d shadowsocks-libev remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/12.9ubuntu1 if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/12.9ubuntu1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'shadowsocks-libev.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'shadowsocks-libev.service' >/dev/null || true deb-systemd-helper unmask 'shadowsocks-libev.service' >/dev/null || true fi fi # End automatically added section exit 0