summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-common.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:35:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:35:12 +0000
commitf06340a3d93a12d610416030f0b8c766bfee63ca (patch)
tree8d9c4eeec6afd2dc01aa6a17435a4f63c3e769d5 /debian/postgresql-common.preinst
parentAdding upstream version 258. (diff)
downloadpostgresql-common-f06340a3d93a12d610416030f0b8c766bfee63ca.tar.xz
postgresql-common-f06340a3d93a12d610416030f0b8c766bfee63ca.zip
Adding debian version 258.debian/258
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/postgresql-common.preinst19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/postgresql-common.preinst b/debian/postgresql-common.preinst
new file mode 100644
index 0000000..7eeae45
--- /dev/null
+++ b/debian/postgresql-common.preinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ install|upgrade)
+ dpkg-divert --package postgresql-common --rename --divert /usr/bin/pg_config.libpq-dev --add /usr/bin/pg_config
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "$0 called with unknown argument \`$1'" 1>&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#