File: postrm

package info (click to toggle)
matrix-synapse 1.139.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,164 kB
  • sloc: python: 257,322; javascript: 7,311; sql: 4,727; sh: 1,177; perl: 626; makefile: 207
file content (24 lines) | stat: -rwxr-xr-x 538 bytes parent folder | download
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