aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-27 15:49:09 +0200
committerFlorian Dold <florian@dold.me>2021-08-27 15:49:09 +0200
commit33595b00e9996b7b94f11e8cc2182836aa33b299 (patch)
treef91b8e400ddcb476b9603282f14dc37b4433bc08
parent21ec352775a5ae5f5def24232222dd56acf42eae (diff)
downloadmerchant-33595b00e9996b7b94f11e8cc2182836aa33b299.tar.gz
merchant-33595b00e9996b7b94f11e8cc2182836aa33b299.zip
work around debconf bug
-rw-r--r--debian/changelog6
-rw-r--r--debian/taler-merchant.postrm11
-rw-r--r--debian/taler-merchant.preinst11
3 files changed, 28 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 8edec8d1..49094099 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
1taler-merchant (0.8.2-4) unstable; urgency=low
2
3 * Work around debconf bug.
4
5 -- Florian Dold <dold@taler.net> Fri, 27 Aug 2021 15:48:49 +0200
6
1taler-merchant (0.8.2-3) unstable; urgency=low 7taler-merchant (0.8.2-3) unstable; urgency=low
2 8
3 * Use separate config file for overrides. 9 * Use separate config file for overrides.
diff --git a/debian/taler-merchant.postrm b/debian/taler-merchant.postrm
index bf628b36..a9a7cc05 100644
--- a/debian/taler-merchant.postrm
+++ b/debian/taler-merchant.postrm
@@ -13,4 +13,15 @@ fi
13 13
14#DEBHELPER# 14#DEBHELPER#
15 15
16# When purging this package after the selections in the preinst have been made,
17# the debconf database is left in an inconsistent state and the package cannot
18# be installed again. This happens because dbconf-common will create a
19# template for these questions with a shared owner. Purging will only delete
20# one of the two templates, leading to a DB state where debconf-set-selections
21# fails. We work around this by manually fixing up the debconf database.
22# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300
23if [ -x /usr/share/debconf/fix_db.pl ]; then
24 /usr/share/debconf/fix_db.pl
25fi
26
16exit 0 27exit 0
diff --git a/debian/taler-merchant.preinst b/debian/taler-merchant.preinst
index df57b007..d1f67d88 100644
--- a/debian/taler-merchant.preinst
+++ b/debian/taler-merchant.preinst
@@ -7,6 +7,17 @@
7 7
8set -e 8set -e
9 9
10# When purging this package after the selections in the preinst have been made,
11# the debconf database is left in an inconsistent state and the package cannot
12# be installed again. This happens because dbconf-common will create a
13# template for these questions with a shared owner. Purging will only delete
14# one of the two templates, leading to a DB state where debconf-set-selections
15# fails. We work around this by manually fixing up the debconf database.
16# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300
17if [ -x /usr/share/debconf/fix_db.pl ]; then
18 /usr/share/debconf/fix_db.pl
19fi
20
10echo taler-merchant taler-merchant/pgsql/method select Unix socket | debconf-set-selections 21echo taler-merchant taler-merchant/pgsql/method select Unix socket | debconf-set-selections
11echo taler-merchant taler-merchant/pgsql/authmethod-user select ident | debconf-set-selections 22echo taler-merchant taler-merchant/pgsql/authmethod-user select ident | debconf-set-selections
12echo taler-merchant taler-merchant/pgsql/app-pass password | debconf-set-selections 23echo taler-merchant taler-merchant/pgsql/app-pass password | debconf-set-selections