blob: c2e17ab1c65a9a92f9953d91b957f7a9849686dd (
plain)
1
2
3
4
5
6
7
8
9
|
post_upgrade() {
pkgver=$1
_majorver=${pkgver%.*}
# Prints the warning message if the database version on disk
# does not match the PostgreSQL major version.
if [ -d /var/lib/postgres/data$_majorver ]; then
/opt/postgresql$_majorver/bin/postgresql-check-db-dir /var/lib/postgres/data$_majorver || true
fi
}
|