summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-common.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:08:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:08:39 +0000
commit039175d5d6adfc3f96e3ffdd5ee946576e22233a (patch)
treef1ba3073275e4441e417ed8b149729d0f5122884 /debian/postgresql-common.preinst
parentAdding upstream version 225+deb11u1. (diff)
downloadpostgresql-common-debian.tar.xz
postgresql-common-debian.zip
Adding debian version 225+deb11u1.debian/225+deb11u1debian
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#