From be3021910038ca1dd0afe874d9e9542abfc60c76 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 15 Mar 2019 16:28:39 +0100 Subject: [PATCH] Improve RECOVERY_MODE detection reliability --- check_pg_streaming_replication | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_pg_streaming_replication b/check_pg_streaming_replication index 99369e6..c314677 100755 --- a/check_pg_streaming_replication +++ b/check_pg_streaming_replication @@ -149,7 +149,7 @@ fi debug "Postgres is running" RECOVERY_MODE=0 -[ $( psql_get 'SELECT pg_is_in_recovery();' ) == "t" ] && RECOVERY_MODE=1 +[ "$( psql_get 'SELECT pg_is_in_recovery();' )" == "t" ] && RECOVERY_MODE=1 if [ -f $RECOVERY_CONF ] then