Fix elastic search support for Fedora.
Change Ifbcc3dd783ff2f362a464fbf4ca22f20cc2c658e broken it [1] [1] https://review.openstack.org/#/c/251980/2/pkg/elasticsearch.sh Change-Id: I330498cd490f3af2e9a569d86e8639a03b48dd17 Closes-Bug: #1531424
This commit is contained in:
parent
d56b3ff028
commit
3809defb2e
@ -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