summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-client-common.postrm
blob: f416938a4fe7f393d1ae688e8d037ba5d28fb099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if [ "$1" = purge ]; then
    # remove psql history file
    rm -f /var/lib/postgresql/.psql_history
    rmdir /var/lib/postgresql/ 2>/dev/null || true
fi

#DEBHELPER#