Skip to content
Snippets Groups Projects
Commit 8fb66b23 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update message for no replication

parent cd0a24a5
No related branches found
No related tags found
1 merge request!996435 check onehost
...@@ -304,7 +304,7 @@ case "${sMode}" in ...@@ -304,7 +304,7 @@ case "${sMode}" in
"replication") "replication")
_out=$( psql -c "select * from pg_stat_replication" 2>&1 ) || _queryFailed _out=$( psql -c "select * from pg_stat_replication" 2>&1 ) || _queryFailed
if tail -1 <<< "$_out" | grep "(0 rows)" >/dev/null ; then if tail -1 <<< "$_out" | grep "(0 rows)" >/dev/null ; then
descr="No data in pg_stat_replication - this is no slave." descr="No data in pg_stat_replication = no replication here."
out="" out=""
else else
descr="status (from pg_stat_replication)" descr="status (from pg_stat_replication)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment