diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2013-07-14 21:48:41 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-07-14 21:52:15 +0200 |
commit | 4971d68032686e2abc66b0da352091fd1b9f4b6b (patch) | |
tree | cb7b9888472e2d7cea4e5a94971a51ccbe977727 /autoscripts/postinst-systemd-dont-enable | |
parent | 3362615a7ef86fcb53d03e7d5b3169bcce9eaf87 (diff) | |
download | init-system-helpers-4971d68032686e2abc66b0da352091fd1b9f4b6b.tar.gz |
dh_systemd_enable: add --no-enable, deb-systemd-helper: add --quiet
The latter is necessary to make the former work without confusing
users :).
Diffstat (limited to 'autoscripts/postinst-systemd-dont-enable')
-rw-r--r-- | autoscripts/postinst-systemd-dont-enable | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/autoscripts/postinst-systemd-dont-enable b/autoscripts/postinst-systemd-dont-enable new file mode 100644 index 0000000..7641052 --- /dev/null +++ b/autoscripts/postinst-systemd-dont-enable @@ -0,0 +1,7 @@ +if [ -x "/usr/bin/deb-systemd-helper" ]; then + # This might seem weird at first glance, but the seemingly useless + # enable/disable is necessary to make deb-systemd-helper create its + # state file to properly disable the unit files at purge time. + deb-systemd-helper --quiet enable #UNITFILES# >/dev/null || true + deb-systemd-helper --quiet disable #UNITFILES# >/dev/null || true +fi |