Merge "Fix elastic search support for Fedora."
This commit is contained in:
commit
535fcd008e
@ -88,10 +88,7 @@ function install_elasticsearch {
|
||||
sudo dpkg -i ${FILES}/elasticsearch-${ELASTICSEARCH_VERSION}.deb
|
||||
sudo update-rc.d elasticsearch defaults 95 10
|
||||
elif is_fedora; then
|
||||
is_package_installed java-1.8.0-openjdk-headless || install_package java-1.8.0-openjdk-headless
|
||||
else
|
||||
is_package_installed java-1.7.0-openjdk-headless || install_package java-1.7.0-openjdk-headless
|
||||
fi
|
||||
is_package_installed java-1.8.0-openjdk-headless || install_package java-1.8.0-openjdk-headless
|
||||
yum_install ${FILES}/elasticsearch-${ELASTICSEARCH_VERSION}.noarch.rpm
|
||||
sudo /bin/systemctl daemon-reload
|
||||
sudo /bin/systemctl enable elasticsearch.service
|
||||
|
Loading…
Reference in New Issue
Block a user