summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-client-common.postrm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/postgresql-client-common.postrm12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/postgresql-client-common.postrm b/debian/postgresql-client-common.postrm
new file mode 100644
index 0000000..f416938
--- /dev/null
+++ b/debian/postgresql-client-common.postrm
@@ -0,0 +1,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#
+