merchant

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

commit 6748cd080de49a51923a31ba15c8c67eadf5122f
parent 06daed3627e6637fa69df117944fe13bddedab93
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  9 Sep 2023 15:03:25 +0200

improve Debian package

Diffstat:
Mdebian/taler-merchant.postinst | 8+++-----
Adebian/taler-merchant.postrm | 29+++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 5 deletions(-)

diff --git a/debian/taler-merchant.postinst b/debian/taler-merchant.postinst @@ -32,11 +32,9 @@ configure) adduser --quiet --system --ingroup ${_GROUPNAME} --no-create-home --home ${TALER_HOME} ${_USERNAME} fi - if ! dpkg-statoverride --list /etc/taler/secrets/merchant-db.secret.conf >/dev/null 2>&1; then - dpkg-statoverride --add --update \ - taler-merchant-httpd root 460 \ - /etc/taler/secrets/merchant-db.secret.conf - fi + dpkg-statoverride --add --update \ + taler-merchant-httpd root 460 \ + /etc/taler/secrets/merchant-db.secret.conf ;; diff --git a/debian/taler-merchant.postrm b/debian/taler-merchant.postrm @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +_USERNAME=taler-merchant-httpd + + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +case "${1}" in +purge) + dpkg-statoverride --remove \ + /etc/taler/secrets/merchant-db.secret.conf || true + deluser --quiet --system ${_USERNAME} || true + ;; + +remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear) + ;; +*) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0