summaryrefslogtreecommitdiffstats
path: root/debian/postgresql-13.preinst
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/postgresql-13.preinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/postgresql-13.preinst b/debian/postgresql-13.preinst
new file mode 100644
index 0000000..a1bccbc
--- /dev/null
+++ b/debian/postgresql-13.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