Mettre à jour 'elastic/elastic_install.sh'
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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"
|
DESTDIR="/etc/yum.repos.d"
|
||||||
DESTFILE="elasticsearch.repo"
|
DESTFILE="elasticsearch.repo"
|
||||||
DESTFILE="$DESTDIR/$DESTFILE"
|
DESTFILE="$DESTDIR/$DESTFILE"
|
||||||
|
|||||||
Reference in New Issue
Block a user