debian/postgresql-18.preinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | MAJOR_VER="${DPKG_MAINTSCRIPT_PACKAGE#postgresql-}" |
| 6 | CATVERSION="@CATVERSION@" # set by override_dh_installdeb |
| 7 | |
| 8 | case $1 in |
| 9 | install|upgrade) |
| 10 | if [ "$2" ]; then |
| 11 | . /usr/share/postgresql-common/maintscripts-functions |
| 12 | preinst_check_catversion "$MAJOR_VER" "$CATVERSION" |
| 13 | fi ;; |
| 14 | esac |
| 15 | |
| 16 | #DEBHELPER# |
| 17 | |
| 18 | exit 0 |