3
0
Fork 0
forked from mirrors/nixpkgs

elasticsearch: Install elastic search modules properly, fixes groovy script support.

This commit is contained in:
Philipp Hausmann 2016-04-29 12:01:13 +02:00
parent 90d7041ce4
commit 7d7380b011
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