#!/bin/sh
set -e
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
	systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge 'kloak.service' >/dev/null || true
	fi
fi
# End automatically added section
# Automatically added by dh_apparmor/4.1.0-1
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.libexec.kloak.find_wl_compositor" ] ; then
    rm -f "/etc/apparmor.d/disable/usr.libexec.kloak.find_wl_compositor" || true
    rm -f "/etc/apparmor.d/force-complain/usr.libexec.kloak.find_wl_compositor" || true
    rm -f "/etc/apparmor.d/local/usr.libexec.kloak.find_wl_compositor" || true
    rm -f /var/cache/apparmor/*/"usr.libexec.kloak.find_wl_compositor" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor/4.1.0-1
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.bin.kloak" ] ; then
    rm -f "/etc/apparmor.d/disable/usr.bin.kloak" || true
    rm -f "/etc/apparmor.d/force-complain/usr.bin.kloak" || true
    rm -f "/etc/apparmor.d/local/usr.bin.kloak" || true
    rm -f /var/cache/apparmor/*/"usr.bin.kloak" || true
    rmdir /etc/apparmor.d/disable 2>/dev/null || true
    rmdir /etc/apparmor.d/local   2>/dev/null || true
    rmdir /etc/apparmor.d         2>/dev/null || true
fi
# End automatically added section
