* debian/pg_createcluster_patroni: Improve parsing of pg_lsclusters output
when determining port number, patch by Tomas Pospisek (Closes: #953157).
This commit is contained in:
parent
929e69dd0a
commit
3812c8d23b
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -5,6 +5,8 @@ patroni (1.6.4-2) UNRELEASED; urgency=medium
|
||||||
invocation (Closes: #953623).
|
invocation (Closes: #953623).
|
||||||
* debian/pg_createcluster_patroni: remove vip-manager file before appending
|
* debian/pg_createcluster_patroni: remove vip-manager file before appending
|
||||||
to it, patch by Tomas Pospisek (Closes: #953147).
|
to it, patch by Tomas Pospisek (Closes: #953147).
|
||||||
|
* debian/pg_createcluster_patroni: Improve parsing of pg_lsclusters output
|
||||||
|
when determining port number, patch by Tomas Pospisek (Closes: #953157).
|
||||||
|
|
||||||
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 10 Feb 2020 10:03:07 +0100
|
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Mon, 10 Feb 2020 10:03:07 +0100
|
||||||
|
|
||||||
|
|
2
debian/pg_createconfig_patroni
vendored
2
debian/pg_createconfig_patroni
vendored
|
@ -60,7 +60,7 @@ fi
|
||||||
|
|
||||||
if [ -z "$PORT" ]; then
|
if [ -z "$PORT" ]; then
|
||||||
# try to guess next free port
|
# try to guess next free port
|
||||||
PORT=$(($(pg_lsclusters | awk '{print $3}' | grep -v Port | sort -n | tail -1) + 1))
|
PORT=$(($(pg_lsclusters | tail -n +2 | awk '{print $3}' | sort -n | tail -1) + 1))
|
||||||
if [ "$PORT" -eq 1 ]; then
|
if [ "$PORT" -eq 1 ]; then
|
||||||
# No cluster exists yet, use default port
|
# No cluster exists yet, use default port
|
||||||
PORT=5432
|
PORT=5432
|
||||||
|
|
Loading…
Reference in a new issue