diff --git a/debian/changelog b/debian/changelog index 38778df..9288b20 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 10 Dec 2020 13:33:54 +0100 diff --git a/debian/pg_clonecluster_patroni b/debian/pg_clonecluster_patroni index b599ff1..6dfcc41 100755 --- a/debian/pg_clonecluster_patroni +++ b/debian/pg_clonecluster_patroni @@ -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"