* debian/pg_clonecluster_patroni: Supress pg_createcluster output as it can

be misleading.
This commit is contained in:
Michael Banck 2021-01-21 17:54:41 +01:00
parent 7f96403eba
commit 1824929f99
2 changed files with 4 additions and 1 deletions

3
debian/changelog vendored
View file

@ -1,5 +1,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 PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Thu, 10 Dec 2020 13:33:54 +0100

View file

@ -40,5 +40,5 @@ then
pg_dropcluster $VERSION $CLUSTER
fi
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"
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"
exit $?