Some checks are pending
Release Docker Image / merge (push) Blocked by required conditions
Release Docker Image / define-variables (push) Successful in 20s
Documentation / Build and Deploy Documentation (push) Successful in 50s
Checks / Prek / Pre-commit & Formatting (push) Successful in 1m6s
Checks / Prek / Clippy and Cargo Tests (push) Successful in 7m3s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Successful in 16m36s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Successful in 18m46s
38 lines
919 B
Bash
38 lines
919 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
#. /usr/share/debconf/confmodule
|
|
|
|
CONDUWUIT_CONFIG_PATH=/etc/conduwuit
|
|
CONDUWUIT_DATABASE_PATH=/var/lib/conduwuit
|
|
CONDUWUIT_DATABASE_PATH_SYMLINK=/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 "$CONDUWUIT_CONFIG_PATH" ]; then
|
|
if test -L "$CONDUWUIT_CONFIG_PATH"; then
|
|
echo "Deleting continuwuity configuration files"
|
|
rm -v -r "$CONDUWUIT_CONFIG_PATH"
|
|
fi
|
|
fi
|
|
|
|
if [ -d "$CONDUWUIT_DATABASE_PATH" ]; then
|
|
if test -L "$CONDUWUIT_DATABASE_PATH"; then
|
|
echo "Deleting continuwuity database directory"
|
|
rm -r "$CONDUWUIT_DATABASE_PATH"
|
|
fi
|
|
fi
|
|
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|