summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-client-common.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:02:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:02:19 +0000
commit670c19c1ec189d5831be4a4c09099036da4635ad (patch)
tree9e929200d3abb9b52d685695db2a72e02718b243 /debian/postgresql-client-common.postrm
parentAdding upstream version 248. (diff)
downloadpostgresql-common-670c19c1ec189d5831be4a4c09099036da4635ad.tar.xz
postgresql-common-670c19c1ec189d5831be4a4c09099036da4635ad.zip
Adding debian version 248.debian/248debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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#
+