From 557100573c4c0d68f6d3e82c593c4da751ce7818 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 19 Sep 2013 02:34:12 +0000 Subject: Store masked state to respect user’s masking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We cannot just unconditionally unmask services on installation time, otherwise “systemctl mask” executed by the user will be reversed. To that end, files in /var/lib/systemd/deb-systemd-helper-masked/ signal that d-s-h masked the service and is allowed to unmask it. --- debian/init-system-helpers.postinst | 6 ------ 1 file changed, 6 deletions(-) (limited to 'debian') diff --git a/debian/init-system-helpers.postinst b/debian/init-system-helpers.postinst index cbea846..6afcaec 100644 --- a/debian/init-system-helpers.postinst +++ b/debian/init-system-helpers.postinst @@ -9,12 +9,6 @@ if dpkg --compare-versions "$2" lt "1.9"; then fi fi -if dpkg --compare-versions "$2" lt "1.10"; then - if [ -d /var/lib/systemd/deb-systemd-helper-masked ]; then - rm -rf /var/lib/systemd/deb-systemd-helper-masked - fi -fi - #DEBHELPER# exit 0 -- cgit v1.2.3