From 79db86a94ad551345d63c79bb718bced57d30580 Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Fri, 7 Nov 2014 18:26:21 -0500 Subject: [PATCH] debian: Added postrm disable of other Qubes packages --- debian/qubes-core-agent.postrm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/qubes-core-agent.postrm b/debian/qubes-core-agent.postrm index 508a238..537679c 100755 --- a/debian/qubes-core-agent.postrm +++ b/debian/qubes-core-agent.postrm @@ -36,12 +36,16 @@ set -e # https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html or # the debian-policy package -if [ "$1" = "remove" ] ; then +if [ "${1}" = "remove" ] ; then /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/null || : if [ -L /lib/firmware/updates ]; then rm /lib/firmware/updates fi + + for srv in qubes-dvm qubes-sysinit qubes-misc-post qubes-netwatcher qubes-network qubes-qrexec-agent; do + systemctl disable ${srv}.service + done fi # dh_installdeb will replace this with shell code automatically