summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-common.preinst
diff options
context:
space:
mode:
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#