Fix wording
This commit is contained in:
parent
a099e2f833
commit
3aaa4a6b18
1 changed files with 4 additions and 4 deletions
|
@ -293,7 +293,7 @@ then
|
||||||
# Check recovery mode
|
# Check recovery mode
|
||||||
if [ $RECOVERY_MODE -ne 1 ]
|
if [ $RECOVERY_MODE -ne 1 ]
|
||||||
then
|
then
|
||||||
echo "CRITICAL: Not in recovery mode while recovery.conf file found !"
|
echo "CRITICAL: Not in recovery mode while $RECOVERY_CONF_FILENAME file found !"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
debug "Postgres is in recovery mode"
|
debug "Postgres is in recovery mode"
|
||||||
|
@ -317,7 +317,7 @@ then
|
||||||
M_HOST=$( echo "$MASTER_CONN_INFOS"| grep 'host=' | sed 's/^.*host= *\([0-9a-zA-Z.-]\+\) *.*$/\1/' )
|
M_HOST=$( echo "$MASTER_CONN_INFOS"| grep 'host=' | sed 's/^.*host= *\([0-9a-zA-Z.-]\+\) *.*$/\1/' )
|
||||||
if [ ! -n "$M_HOST" ]
|
if [ ! -n "$M_HOST" ]
|
||||||
then
|
then
|
||||||
echo "UNKNOWN: Can't retrieve master host from recovery.conf file"
|
echo "UNKNOWN: Can't retrieve master host from primary_conninfo configuration parameter"
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
debug "Master host: $M_HOST"
|
debug "Master host: $M_HOST"
|
||||||
|
@ -458,7 +458,7 @@ then
|
||||||
# Check recovery mode
|
# Check recovery mode
|
||||||
if [ $RECOVERY_MODE -eq 1 ]
|
if [ $RECOVERY_MODE -eq 1 ]
|
||||||
then
|
then
|
||||||
echo "CRITICAL: In recovery mode while recovery.conf file not found !"
|
echo "CRITICAL: In recovery mode while expected mode is master!"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
debug "Postgres is not in recovery mode"
|
debug "Postgres is not in recovery mode"
|
||||||
|
|
Loading…
Reference in a new issue