Browse Source

Maintenance: Add guard clause for ES plugin handler to binary packages

Marcel Herrguth 1 year ago
parent
commit
8a1d701bb3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      contrib/packager.io/functions

+ 5 - 0
contrib/packager.io/functions

@@ -275,6 +275,11 @@ function setup_elasticsearch () {
     return 0
   fi
 
+  if [[ "$(/usr/share/elasticsearch/bin/elasticsearch --version| cut -c 10)" -gt 7 ]]; then
+    # We're skipping the plugin reinstallation process for ES 8+ as it's part of the ES core
+    return 0
+  fi
+
   if [ -n "$(/usr/share/elasticsearch/bin/elasticsearch-plugin list | grep mapper-attachments)" ]; then
     REBUILD_ES_SEARCHINDEX="yes"