* debian/pg_clonecluster_patroni: After pg_dropcluster, remove
postgresql.base.conf as well.
This commit is contained in:
parent
1824929f99
commit
ae3072dce0
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -3,6 +3,8 @@ patroni (2.0.1-3) UNRELEASED; urgency=medium
|
|||
[ Michael Banck ]
|
||||
* debian/pg_clonecluster_patroni: Supress pg_createcluster output as it can
|
||||
be misleading.
|
||||
* debian/pg_clonecluster_patroni: After pg_dropcluster, remove
|
||||
postgresql.base.conf as well.
|
||||
|
||||
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Thu, 10 Dec 2020 13:33:54 +0100
|
||||
|
||||
|
|
1
debian/pg_clonecluster_patroni
vendored
1
debian/pg_clonecluster_patroni
vendored
|
@ -38,6 +38,7 @@ fi
|
|||
if [ -f /etc/postgresql/$VERSION/$CLUSTER/postgresql.conf ]
|
||||
then
|
||||
pg_dropcluster $VERSION $CLUSTER
|
||||
rm -f etc/postgresql/$VERSION/$CLUSTER/postgresql.base.conf
|
||||
fi
|
||||
|
||||
pg_createcluster --start-conf=manual --datadir=$DATADIR $VERSION $CLUSTER > /dev/null && rm -rf $DATADIR && /usr/lib/postgresql/$VERSION/bin/pg_basebackup --pgdata $DATADIR -X stream --dbname="$CONNSTR"
|
||||
|
|
Loading…
Reference in a new issue