From 40f1bd3f7c6a29a284dc9f4c6b285248c4da1d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Tue, 13 Mar 2018 11:21:25 +0000 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'elastic/elastic=5Fins?= =?UTF-8?q?tall.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elastic/elastic_install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/elastic/elastic_install.sh b/elastic/elastic_install.sh index 5d779b9..2c6c978 100644 --- a/elastic/elastic_install.sh +++ b/elastic/elastic_install.sh @@ -1,9 +1,10 @@ #!/bin/bash -#wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - -#echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list -#apt -y update && apt -y install elasticsearch -if [ -f /etc/redhat-release ]; then +if [ -f /etc/debian_version ]; then + wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - + echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list + apt -y update && apt -y install elasticsearch +elif [ -f /etc/redhat-release ]; then DESTDIR="/etc/yum.repos.d" DESTFILE="elasticsearch.repo" DESTFILE="$DESTDIR/$DESTFILE"