Skip to content
Snippets Groups Projects
Commit bff2ec5c authored by Christoph Berg's avatar Christoph Berg :satellite:
Browse files

postinst_check_catversion: Ignore errors while determining PGDATA.

parent 07b842ba
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ postgresql-common (192) UNRELEASED; urgency=medium
(Closes: #891836)
* pg_createcluster: Fix error on importing existing clusters, spotted by
Mark Eichin, thanks! (Closes: #886871)
* postinst_check_catversion: Ignore errors while determining PGDATA.
-- Christoph Berg <myon@debian.org> Sun, 13 May 2018 16:49:51 +0200
......
......@@ -213,7 +213,7 @@ postinst_check_catversion()
[ -x "$PGCONTROLDATA" ] || return 0
for cluster in $(pg_lsclusters -h | awk "/^$MAJOR_VER / { print \$2 }"); do
pgdata=$(pg_conftool -s $MAJOR_VER $cluster show data_directory)
pgdata=$(pg_conftool -s $MAJOR_VER $cluster show data_directory) || continue
[ -d "$pgdata" ] || continue
DB_CATVERSION=$(LC_ALL=C $PGCONTROLDATA $pgdata | sed -ne 's/^Catalog version number: *\([0-9]\+\)/\1/p')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment