aboutsummaryrefslogtreecommitdiff
path: root/debian/taler-auditor.postrm
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-09 15:03:13 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-09 15:03:13 +0200
commit5f17d63c4cc7721a752c48170a66cb076040e1e0 (patch)
tree7431857d39a7e54885a60e50c7ee6ee9bfdb1d15 /debian/taler-auditor.postrm
parent7fa0e74f08659197a1f25af6ba00bff862c2a2c2 (diff)
improve Debian package
Diffstat (limited to 'debian/taler-auditor.postrm')
-rw-r--r--debian/taler-auditor.postrm9
1 files changed, 8 insertions, 1 deletions
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) ;;
*)