Fix wording

This commit is contained in:
Benjamin Renard 2024-07-15 12:50:27 +02:00
parent a099e2f833
commit 3aaa4a6b18
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -293,7 +293,7 @@ then
# Check recovery mode
if [ $RECOVERY_MODE -ne 1 ]
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
fi
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/' )
if [ ! -n "$M_HOST" ]
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
fi
debug "Master host: $M_HOST"
@ -458,7 +458,7 @@ then
# Check recovery mode
if [ $RECOVERY_MODE -eq 1 ]
then
echo "CRITICAL: In recovery mode while recovery.conf file not found !"
echo "CRITICAL: In recovery mode while expected mode is master!"
exit 2
fi
debug "Postgres is not in recovery mode"