fix haproxy_status.sh to trim new lines

This commit is contained in:
Anthony Scalisi
2015-03-26 12:35:36 -07:00
parent f167bbaddc
commit 378851eeff
+1 -1
View File
@@ -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