1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/bin/sh
set -e
CONFIG_DIR="/etc/matrix-synapse/conf.d"
CONFIGFILE_SERVERNAME="$CONFIG_DIR/server_name.yaml"
CONFIGFILE_REPORTSTATS="$CONFIG_DIR/report_stats.yaml"
if [ "$1" = "purge" ]
then
rm -f "$CONFIGFILE_SERVERNAME" "$CONFIGFILE_REPORTSTATS"
if [ -d "$CONFIG_DIR" ]
then
rmdir --ignore-fail-on-non-empty "$CONFIG_DIR"
fi
for DIR in /var/lib/matrix-synapse /var/log/matrix-synapse /etc/matrix-synapse; do
dpkg-statoverride --force-all --quiet --remove "$DIR"
done
fi
#DEBHELPER#
exit 0
|