From 4fb2f17b8365185319595d178d72df6f06bcacfd Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 16 Apr 2021 22:11:58 +0200 Subject: [PATCH] Purge debconf changes from the DB on purge --- debian/postrm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/postrm b/debian/postrm index 04ca3254..28949091 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,11 +1,16 @@ #!/bin/sh set -e +. /usr/share/debconf/confmodule + CONDUIT_CONFIG_PATH=/etc/matrix-conduit CONDUIT_DATABASE_PATH=/var/lib/matrix-conduit case $1 in purge) + # Remove debconf changes from the db + db_purge + # Per https://www.debian.org/doc/debian-policy/ch-files.html#behavior # "configuration files must be preserved when the package is removed, and # only deleted when the package is purged."