challenger

OAuth 2.0-based authentication service that validates user can receive messages at a certain address
Log | Files | Refs | Submodules | README | LICENSE

commit 53b974c7d8d40558114d1ea623e1ef6557134b60
parent 1e77cad0248f205f3c482949361f9f4c2e74b8d9
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:
Mdebian/challenger-httpd.postinst | 16----------------
Mdebian/challenger-httpd.prerm | 2+-
2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/debian/challenger-httpd.postinst b/debian/challenger-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 'challenger-httpd.service' >/dev/null || true - fi -fi - -if [ "$1" = "purge" ]; then - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper purge 'challenger-httpd.service' >/dev/null || true - deb-systemd-helper unmask 'challenger-httpd.service' >/dev/null || true - fi -fi - CHALLENGER_HOME="/var/lib/challenger/" . /usr/share/debconf/confmodule diff --git a/debian/challenger-httpd.prerm b/debian/challenger-httpd.prerm @@ -3,7 +3,7 @@ set -e if [ -d /run/systemd/system ] && [ "$1" = remove ]; then - deb-systemd-invoke stop 'challenger-httpd.service' >/dev/null || true + deb-systemd-invoke stop 'challenger.target' 'challenger-httpd.service' >/dev/null || true fi #DEBHELPER#