Improve RECOVERY_MODE detection reliability

This commit is contained in:
Benjamin Renard 2019-03-15 16:28:39 +01:00
parent 99bacd9979
commit be30219100

View file

@ -149,7 +149,7 @@ fi
debug "Postgres is running" debug "Postgres is running"
RECOVERY_MODE=0 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 ] if [ -f $RECOVERY_CONF ]
then then