diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-07-03 13:44:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-07-03 13:44:40 +0200 |
commit | 84c78612f3bdf24b42984451352af146da4576c2 (patch) | |
tree | 5ed0d25b292b1598bfa8406324a2f3e1bd25be78 | |
parent | dc17320a883a28bb58e4f695a977393cd707a06a (diff) | |
download | exchange-84c78612f3bdf24b42984451352af146da4576c2.tar.xz |
fix #7265: ensure Debian package cleans up nicely on purge
-rw-r--r-- | debian/taler-exchange.postrm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/debian/taler-exchange.postrm b/debian/taler-exchange.postrm index 6c31a4591..6488d268b 100644 --- a/debian/taler-exchange.postrm +++ b/debian/taler-exchange.postrm @@ -7,13 +7,16 @@ if [ -f /usr/share/debconf/confmodule ]; then fi case "${1}" in -purge) ;; -remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear) ;; +purge) + rm -rf /var/lib/taler/exchange-offline /var/lib/taler/exchange-secmod-* + ;; +remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear) + ;; *) - echo "postrm called with unknown argument \`${1}'" >&2 - exit 1 - ;; + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; esac #DEBHELPER# |