Improve RECOVERY_MODE detection reliability
This commit is contained in:
parent
99bacd9979
commit
be30219100
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue