From 28eb80ba2f453cf0e4a967e8bedd0794b338abd6 Mon Sep 17 00:00:00 2001 From: Romain Ruaud Date: Fri, 31 Jul 2020 14:43:00 +0200 Subject: [PATCH] Do not break on plugin removal attempt. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fbac2e59..dc9048641 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,9 +45,9 @@ before_install: - export ES_HOME=/usr/share/elasticsearch - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.deb - sudo dpkg -i --force-confnew elasticsearch-$ES_VERSION.deb - - yes | sudo $ES_HOME/bin/elasticsearch-plugin remove analysis-icu + - yes | sudo $ES_HOME/bin/elasticsearch-plugin remove analysis-icu || return 0 - yes | sudo $ES_HOME/bin/elasticsearch-plugin install analysis-icu - - yes | sudo $ES_HOME/bin/elasticsearch-plugin remove analysis-phonetic + - yes | sudo $ES_HOME/bin/elasticsearch-plugin remove analysis-phonetic || return 0 - yes | sudo $ES_HOME/bin/elasticsearch-plugin install analysis-phonetic - sudo chgrp elasticsearch /etc/default/elasticsearch -R - sudo service elasticsearch start