Merge pull request #15078 from phile314/master

elasticsearch: Install elastic search modules properly
This commit is contained in:
Arseniy Seroka 2016-04-29 20:31:47 +03:00
commit 277154e901
2 changed files with 2 additions and 1 deletions

View File

@ -145,6 +145,7 @@ in {
# Install plugins
ln -sfT ${esPlugins}/plugins ${cfg.dataDir}/plugins
ln -sfT ${cfg.package}/lib ${cfg.dataDir}/lib
ln -sfT ${cfg.package}/modules ${cfg.dataDir}/modules
if [ "$(id -u)" = 0 ]; then chown -R elasticsearch ${cfg.dataDir}; fi
'';
postStart = mkBefore ''

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out
cp -R bin config lib $out
cp -R bin config lib modules $out
# don't want to have binary with name plugin
mv $out/bin/plugin $out/bin/elasticsearch-plugin