Purge debconf changes from the DB on purge
This commit is contained in:
parent
19aaffeb23
commit
4fb2f17b83
1 changed files with 5 additions and 0 deletions
5
debian/postrm
vendored
5
debian/postrm
vendored
|
@ -1,11 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
CONDUIT_CONFIG_PATH=/etc/matrix-conduit
|
CONDUIT_CONFIG_PATH=/etc/matrix-conduit
|
||||||
CONDUIT_DATABASE_PATH=/var/lib/matrix-conduit
|
CONDUIT_DATABASE_PATH=/var/lib/matrix-conduit
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
purge)
|
purge)
|
||||||
|
# Remove debconf changes from the db
|
||||||
|
db_purge
|
||||||
|
|
||||||
# Per https://www.debian.org/doc/debian-policy/ch-files.html#behavior
|
# Per https://www.debian.org/doc/debian-policy/ch-files.html#behavior
|
||||||
# "configuration files must be preserved when the package is removed, and
|
# "configuration files must be preserved when the package is removed, and
|
||||||
# only deleted when the package is purged."
|
# only deleted when the package is purged."
|
||||||
|
|
Loading…
Add table
Reference in a new issue