1 2 3 4 5 6 7
post_upgrade() { # Prints the warning message if the database version on disk # does not match the PostgreSQL major version. if [ -d /var/lib/postgres/data14 ]; then /opt/postgresql14/bin/postgresql-check-db-dir /var/lib/postgres/data || true fi }