* 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:
parent
21cfa15bab
commit
aa2d5bc588
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
2
debian/pg_clonecluster_patroni
vendored
2
debian/pg_clonecluster_patroni
vendored
|
@ -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 $?
|
||||
|
|
Loading…
Reference in a new issue