Current Path : /var/lib/dpkg/info/ |
Current File : /var/lib/dpkg/info/varnish.postrm |
#!/bin/sh set -e case "$1" in upgrade) ;; remove|failed-upgrade|abort-install|abort-upgrade|disappear) if test -e /var/log/varnish ; then rm -r /var/log/varnish > /dev/null 2>&1 || exit 78 fi if test -e /var/lib/varnish; then rm -r /var/lib/varnish > /dev/null 2>&1 || exit 78 fi ;; purge) if test -e /var/log/varnish; then rm -r /var/log/varnish > /dev/null 2>&1 || exit 78 fi if test -e /var/lib/varnish; then rm -r /var/lib/varnish > /dev/null 2>&1 || exit 78 fi rm -f /etc/varnish/secret ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 64 esac # Automatically added by dh_installinit/10.10.9ubuntu1 if [ "$1" = "purge" ] ; then update-rc.d varnishncsa remove >/dev/null fi # In case this system is running systemd, we make systemd reload the unit files # to pick up changes. if [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installinit/10.10.9ubuntu1 if [ "$1" = "purge" ] ; then update-rc.d varnish remove >/dev/null fi # In case this system is running systemd, we make systemd reload the unit files # to pick up changes. if [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_systemd_enable/10.10.9ubuntu1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'varnish.service' 'varnishncsa.service' >/dev/null fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'varnish.service' 'varnishncsa.service' >/dev/null deb-systemd-helper unmask 'varnish.service' 'varnishncsa.service' >/dev/null fi fi # End automatically added section exit 0