diff options
Diffstat (limited to 'debian/taler-merchant.postrm')
-rw-r--r-- | debian/taler-merchant.postrm | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/debian/taler-merchant.postrm b/debian/taler-merchant.postrm index bf628b36..693460ef 100644 --- a/debian/taler-merchant.postrm +++ b/debian/taler-merchant.postrm @@ -2,14 +2,27 @@ set -e +_USERNAME=taler-merchant-httpd + + if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule + . /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 +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# |