diff --git a/haproxy_status.sh b/haproxy_status.sh index 570af9d6..1ddf5899 100755 --- a/haproxy_status.sh +++ b/haproxy_status.sh @@ -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