Remove creating keystore on package install

This is no longer needed as we now create the keystore if needed by a
plugin.

Relates #26394
This commit is contained in:
Jason Tedor 2017-08-25 17:20:45 -04:00 committed by GitHub
parent cfd14cd2b8
commit 1898c53990
1 changed files with 2 additions and 8 deletions

View File

@ -103,17 +103,11 @@ chown -R root:elasticsearch /etc/elasticsearch
chmod 0750 /etc/elasticsearch
if [ -f /etc/default/elasticsearch ]; then
chown root:elasticsearch /etc/default/elasticsearch
chown root:elasticsearch /etc/default/elasticsearch
fi
if [ -f /etc/sysconfig/elasticsearch ]; then
chown root:elasticsearch /etc/sysconfig/elasticsearch
fi
if [ ! -f "$ES_PATH_CONF"/elasticsearch.keystore ]; then
/usr/share/elasticsearch/bin/elasticsearch-keystore create
chown root:elasticsearch "$ES_PATH_CONF"/elasticsearch.keystore
chmod 660 "$ES_PATH_CONF"/elasticsearch.keystore
chown root:elasticsearch /etc/sysconfig/elasticsearch
fi
${scripts.footer}