From ecbfbc5f2f216c5ccccfbb5b7c97c79ac7b1fcb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Tue, 13 Mar 2018 11:28:35 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/elastic/elastic_install.sh b/elastic/elastic_install.sh index afdf75e..5af8e48 100644 --- a/elastic/elastic_install.sh +++ b/elastic/elastic_install.sh @@ -1,10 +1,12 @@ #!/bin/bash -if [ -f /etc/debian_version ]; 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 +elif [ -f /etc/redhat-release ] +then DESTDIR="/etc/yum.repos.d" DESTFILE="elasticsearch.repo" DESTFILE="$DESTDIR/$DESTFILE" @@ -17,6 +19,5 @@ elif [ -f /etc/redhat-release ]; then echo "enabled=1">>"$DESTFILE" echo "autorefresh=1">>"$DESTFILE" echo "type=rpm-md">>"$DESTFILE" - yum install -y elasticsearch fi \ No newline at end of file