summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-15.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:46:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:46:52 +0000
commit27f97da3234235dd7aa61330a8e05aacf93d026a (patch)
tree31c1a208b91fab0b07f980580cd7d5d8ae9c6f74 /debian/postgresql-15.preinst
parentAdding upstream version 15.4. (diff)
downloadpostgresql-15-27f97da3234235dd7aa61330a8e05aacf93d026a.tar.xz
postgresql-15-27f97da3234235dd7aa61330a8e05aacf93d026a.zip
Adding debian version 15.4-3.debian/15.4-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/postgresql-15.preinst')
-rw-r--r--debian/postgresql-15.preinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/postgresql-15.preinst b/debian/postgresql-15.preinst
new file mode 100644
index 0000000..a1bccbc
--- /dev/null
+++ b/debian/postgresql-15.preinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+MAJOR_VER="${DPKG_MAINTSCRIPT_PACKAGE#postgresql-}"
+CATVERSION="@CATVERSION@" # set by override_dh_installdeb
+
+case $1 in
+ install|upgrade)
+ if [ "$2" ]; then
+ . /usr/share/postgresql-common/maintscripts-functions
+ preinst_check_catversion "$MAJOR_VER" "$CATVERSION"
+ fi ;;
+esac
+
+#DEBHELPER#
+
+exit 0