commit 78682a2ffe20d65dd7140ace21790051c03f092e parent d7273ff70ad72f47b7e0c925a52be3ecb48f23dd Author: Florian Dold <dold@taler.net> Date: Tue, 8 Sep 2026 15:39:44 +0200 Debian: stop the product target on removal Stop the target as well as HTTP serving when removing the package, and remove unreachable remove/purge handling from postinst. Diffstat:
| M | debian/anastasis-httpd.postinst | | | 16 | ---------------- |
| M | debian/anastasis-httpd.prerm | | | 2 | +- |
2 files changed, 1 insertion(+), 17 deletions(-)
diff --git a/debian/anastasis-httpd.postinst b/debian/anastasis-httpd.postinst @@ -2,22 +2,6 @@ set -e -if [ -d /run/systemd/system ]; then - systemctl --system daemon-reload >/dev/null || true -fi -if [ "$1" = "remove" ]; then - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper mask 'anastasis-httpd.service' >/dev/null || true - fi -fi - -if [ "$1" = "purge" ]; then - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper purge 'anastasis-httpd.service' >/dev/null || true - deb-systemd-helper unmask 'anastasis-httpd.service' >/dev/null || true - fi -fi - ANASTASIS_HOME="/var/lib/anastasis/" . /usr/share/debconf/confmodule diff --git a/debian/anastasis-httpd.prerm b/debian/anastasis-httpd.prerm @@ -3,7 +3,7 @@ set -e if [ -d /run/systemd/system ] && [ "$1" = remove ]; then - deb-systemd-invoke stop 'anastasis-httpd.service' >/dev/null || true + deb-systemd-invoke stop 'anastasis.target' 'anastasis-httpd.service' >/dev/null || true fi #DEBHELPER#