From 108d13936cc43eacfa20a38c8afcd95fd37b81d4 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 17 Apr 2018 10:50:25 +0200 Subject: [PATCH] fix comment --- scripts/elastic-upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/elastic-upgrade.sh b/scripts/elastic-upgrade.sh index f3a8f91d8..1a9ff5c24 100755 --- a/scripts/elastic-upgrade.sh +++ b/scripts/elastic-upgrade.sh @@ -442,7 +442,7 @@ upgrade_classic() reindex_indices() { - # get number of documents (from elastic 5.x, docs.count is at column 7) + # get number of documents (before elastic 5.x, docs.count is at column 6) local docs=$(curl "$ES_IP:9200/_cat/indices" 2>/dev/null | awk '{s+=$6} END {printf "%.0f", s}') # get all indices local indices=$(curl "$ES_IP:9200/_cat/indices" 2>/dev/null | awk '{print $3}')