aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-merchant.postrm
blob: a9a7cc058f6d3ad8ad7ef9d722f356266d8800d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

set -e

if [ -f /usr/share/debconf/confmodule ]; then
    . /usr/share/debconf/confmodule
fi

if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then
    . /usr/share/dbconfig-common/dpkg/postrm.pgsql
    dbc_go taler-merchant "$@"
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