* debian/pg_clonecluster_patroni: Always use explicit pg_basebackup version,

in case more than one major version of PostgreSQL is installed.
This commit is contained in:
Michael Banck 2020-05-08 15:35:07 +02:00
parent 21cfa15bab
commit aa2d5bc588
2 changed files with 4 additions and 1 deletions

3
debian/changelog vendored
View file

@ -1,5 +1,8 @@
patroni (1.6.5-3) UNRELEASED; urgency=medium
[ Michael Banck ]
* debian/pg_clonecluster_patroni: Always use explicit pg_basebackup version,
in case more than one major version of PostgreSQL is installed.
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Thu, 07 May 2020 13:41:58 +0200

View file

@ -40,5 +40,5 @@ then
pg_dropcluster $VERSION $CLUSTER
fi
pg_createcluster --start-conf=manual --datadir=$DATADIR $VERSION $CLUSTER && rm -rf $DATADIR && pg_basebackup --pgdata $DATADIR -X stream --dbname="$CONNSTR"
pg_createcluster --start-conf=manual --datadir=$DATADIR $VERSION $CLUSTER && rm -rf $DATADIR && /usr/lib/postgresql/$VERSION/bin/pg_basebackup --pgdata $DATADIR -X stream --dbname="$CONNSTR"
exit $?