#!/bin/sh # postrm script for packagekit set -e if [ "$1" = "purge" ]; then if [ -x /etc/init.d/dbus ]; then invoke-rc.d dbus force-reload || true fi # Remove PK transaction db and desktop cache rm -rf /var/lib/PackageKit rm -rf /var/cache/PackageKit fi # Automatically added by dh_installdeb/13.3 dpkg-maintscript-helper rm_conffile /etc/PackageKit/events/post-transaction.d/README 1.0.1-1 -- "$@" dpkg-maintscript-helper rm_conffile /etc/PackageKit/events/pre-transaction.d/README 1.0.1-1 -- "$@" # End automatically added section # Automatically added by dh_installsystemduser/13.3 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ] ; then deb-systemd-helper --user mask 'pk-debconf-helper.socket' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ] ; then deb-systemd-helper --user purge 'pk-debconf-helper.socket' >/dev/null || true deb-systemd-helper --user unmask 'pk-debconf-helper.socket' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installsystemd/13.3 if [ -d /run/systemd/system ] && [ "$1" = remove ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section