From 5f17d63c4cc7721a752c48170a66cb076040e1e0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Sep 2023 15:03:13 +0200 Subject: improve Debian package --- debian/taler-auditor.postrm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'debian/taler-auditor.postrm') diff --git a/debian/taler-auditor.postrm b/debian/taler-auditor.postrm index 752510e63..639e3241e 100644 --- a/debian/taler-auditor.postrm +++ b/debian/taler-auditor.postrm @@ -6,9 +6,16 @@ if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi +_USERNAME=taler-auditor-httpd +_GROUPNAME=taler-auditor-httpd + case "${1}" in purge) - ;; + dpkg-statoverride --remove \ + /etc/taler/secrets/auditor-db.secret.conf || true + deluser --system --quiet ${_USERNAME} || true + delgroup --only-if-empty --quiet ${_GROUPNAME} || true + ;; remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear) ;; *) -- cgit v1.2.3