Conduit is a simple, fast and reliable chat server powered by Matrix https://conduit.rs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
526 B
22 lines
526 B
#!/bin/sh |
|
set -e |
|
|
|
CONDUIT_CONFIG_PATH=/etc/matrix-conduit |
|
CONDUIT_DATABASE_PATH=/var/lib/matrix-conduit |
|
|
|
case $1 in |
|
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#
|
|
|