merchant

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

commit 33595b00e9996b7b94f11e8cc2182836aa33b299
parent 21ec352775a5ae5f5def24232222dd56acf42eae
Author: Florian Dold <florian@dold.me>
Date:   Fri, 27 Aug 2021 15:49:09 +0200

work around debconf bug

Diffstat:
Mdebian/changelog | 6++++++
Mdebian/taler-merchant.postrm | 11+++++++++++
Mdebian/taler-merchant.preinst | 11+++++++++++
3 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog @@ -1,3 +1,9 @@ +taler-merchant (0.8.2-4) unstable; urgency=low + + * Work around debconf bug. + + -- Florian Dold <dold@taler.net> Fri, 27 Aug 2021 15:48:49 +0200 + taler-merchant (0.8.2-3) unstable; urgency=low * Use separate config file for overrides. diff --git a/debian/taler-merchant.postrm b/debian/taler-merchant.postrm @@ -13,4 +13,15 @@ fi #DEBHELPER# +# When purging this package after the selections in the preinst have been made, +# the debconf database is left in an inconsistent state and the package cannot +# be installed again. This happens because dbconf-common will create a +# template for these questions with a shared owner. Purging will only delete +# one of the two templates, leading to a DB state where debconf-set-selections +# fails. We work around this by manually fixing up the debconf database. +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300 +if [ -x /usr/share/debconf/fix_db.pl ]; then + /usr/share/debconf/fix_db.pl +fi + exit 0 diff --git a/debian/taler-merchant.preinst b/debian/taler-merchant.preinst @@ -7,6 +7,17 @@ set -e +# When purging this package after the selections in the preinst have been made, +# the debconf database is left in an inconsistent state and the package cannot +# be installed again. This happens because dbconf-common will create a +# template for these questions with a shared owner. Purging will only delete +# one of the two templates, leading to a DB state where debconf-set-selections +# fails. We work around this by manually fixing up the debconf database. +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300 +if [ -x /usr/share/debconf/fix_db.pl ]; then + /usr/share/debconf/fix_db.pl +fi + echo taler-merchant taler-merchant/pgsql/method select Unix socket | debconf-set-selections echo taler-merchant taler-merchant/pgsql/authmethod-user select ident | debconf-set-selections echo taler-merchant taler-merchant/pgsql/app-pass password | debconf-set-selections