summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-09-19 02:34:12 +0000
committerMichael Stapelberg <michael@stapelberg.de>2013-09-19 02:34:12 +0000
commit557100573c4c0d68f6d3e82c593c4da751ce7818 (patch)
tree88cd021b55fbe3607f229f849e36365d7263161e /debian
parent2b6898672734111c046208b687c45692a2a6eadd (diff)
downloadinit-system-helpers-557100573c4c0d68f6d3e82c593c4da751ce7818.tar.gz
Store masked state to respect user’s maskingdebian/1.10
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.
Diffstat (limited to 'debian')
-rw-r--r--debian/init-system-helpers.postinst6
1 files changed, 0 insertions, 6 deletions
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