mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-09-12 01:29:12 +02:00
27 lines
614 B
Bash
27 lines
614 B
Bash
#!/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."
|
|
if [ -d "$CONDUIT_CONFIG_PATH" ]; then
|
|
rm -r "$CONDUIT_CONFIG_PATH"
|
|
fi
|
|
|
|
if [ -d "$CONDUIT_DATABASE_PATH" ]; then
|
|
rm -r "$CONDUIT_DATABASE_PATH"
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|