debian: remove old symlink on postrm

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-18 23:26:58 -04:00 committed by June 🍓🦴
parent 9bfa89a555
commit 4aeec78ab4
1 changed files with 5 additions and 0 deletions

5
debian/postrm vendored
View File

@ -5,6 +5,7 @@ set -e
CONDUWUIT_CONFIG_PATH=/etc/conduwuit
CONDUWUIT_DATABASE_PATH=/var/lib/conduwuit
CONDUWUIT_DATABASE_PATH_SYMLINK=/var/lib/matrix-conduit
case $1 in
purge)
@ -21,6 +22,10 @@ case $1 in
if [ -d "$CONDUWUIT_DATABASE_PATH" ]; then
rm -v -r "$CONDUWUIT_DATABASE_PATH"
fi
if [ -d "$CONDUWUIT_DATABASE_PATH_SYMLINK" ]; then
rm -v -r "$CONDUWUIT_DATABASE_PATH_SYMLINK"
fi
;;
esac