* debian/pg_clonecluster_patroni: After pg_dropcluster, remove

postgresql.base.conf as well.
This commit is contained in:
Michael Banck 2021-01-21 18:08:58 +01:00
parent 1824929f99
commit ae3072dce0
2 changed files with 3 additions and 0 deletions

2
debian/changelog vendored
View file

@ -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

View file

@ -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"