merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit d8938ddd91c4afa894d6a7669fb36ff53cfa1f7f
parent 4422cde1a47514c231a82fb51c2e7a47cbe80be0
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Tue, 17 Jun 2025 14:23:54 +0200

update of the update proc #9920

Diffstat:
Mdebian/taler-merchant.prerm | 26++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)

diff --git a/debian/taler-merchant.prerm b/debian/taler-merchant.prerm @@ -1,22 +1,20 @@ #!/bin/sh - set -e MARKER="/run/taler/merchant.was-enabled" -if [ -d /run/systemd/system ] && [ "$1" = remove ]; then - deb-systemd-invoke stop 'taler-merchant*' >/dev/null || true -fi - -if [ -d /run/systemd/system ] && [ "$1" = upgrade ]; then - - if systemctl is-enabled taler-merchant-httpd.service >/dev/null 2>&1; then - echo "taler-merchant-httpd was enabled before upgrade/remove." - mkdir -p /run/taler - echo "enabled" > "$MARKER" - fi - - systemctl disable --now taler-merchant.target || true +if [ -d /run/systemd/system ]; then + case "$1" in + remove|upgrade|deconfigure) + if systemctl is-enabled --quiet taler-merchant.target; then + echo "taler-merchant.target was enabled before $1." + mkdir -p /run/taler + echo enabled > "$MARKER" + systemctl disable --now taler-merchant.target || true + fi + ;; + esac fi +#DEBHELPER# exit 0