mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-09-02 01:29:36 +00:00
fix haproxy_status.sh to trim new lines
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
while true
|
||||
do {
|
||||
response=$(echo "SELECT pg_is_in_recovery();" | psql -t postgres --port $2 --host $1 2> /dev/null)
|
||||
response=$(echo "SELECT pg_is_in_recovery();" | psql -t postgres --port $2 --host $1 2> /dev/null | tr -d "\n")
|
||||
|
||||
if [ "${response}" == " f" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user