* debian/pg_clonecluster_patroni: Pass $DATADIR variable to pg_createcluster.
This commit is contained in:
parent
96d0534ac1
commit
e51c5c0ae1
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -6,6 +6,7 @@ patroni (1.6.5-2) UNRELEASED; urgency=medium
|
|||
* debian/pg_createcluster_patroni: Pass $DATADIR variable to pg_createcluster
|
||||
if specified.
|
||||
* debian/patroni@.service: Append scope to syslog identifier.
|
||||
* debian/pg_clonecluster_patroni: Pass $DATADIR variable to pg_createcluster.
|
||||
|
||||
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 27 Apr 2020 18:25:04 +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 $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 && pg_basebackup --pgdata $DATADIR -X stream --dbname="$CONNSTR"
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue