summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-systemd-dont-enable
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-09-15 04:34:17 +0000
committerMichael Stapelberg <michael@stapelberg.de>2013-09-15 04:34:17 +0000
commit34f1de71a363168bb62161f9796eb727df8ab797 (patch)
treeb209e30a2a94fbaf34f521c2a5ed0da8b539e94a /autoscripts/postinst-systemd-dont-enable
parentc419de25e649229caa9fec50deaf73c29fe55f4a (diff)
downloadinit-system-helpers-34f1de71a363168bb62161f9796eb727df8ab797.tar.gz
update maintscripts to mask a service while removed (but not purged)
fixes #722521, #714903
Diffstat (limited to 'autoscripts/postinst-systemd-dont-enable')
-rw-r--r--autoscripts/postinst-systemd-dont-enable3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoscripts/postinst-systemd-dont-enable b/autoscripts/postinst-systemd-dont-enable
index efc179f..2dd86a1 100644
--- a/autoscripts/postinst-systemd-dont-enable
+++ b/autoscripts/postinst-systemd-dont-enable
@@ -1,4 +1,7 @@
if deb-systemd-helper debian-installed #UNITFILE#; then
+ # This will only remove masks created by d-s-h on package removal.
+ deb-systemd-helper unmask #UNITFILE# >/dev/null || true
+
if deb-systemd-helper --quiet was-enabled #UNITFILE#; then
# Create new symlinks, if any.
deb-systemd-helper enable #UNITFILE# >/dev/null || true