elasticsearch6: fix startup due to missing jvm.options
This commit is contained in:
parent
54e6c0e7ae
commit
ae94825b4a
@ -32,8 +32,11 @@ let
|
|||||||
(if es5 then (pkgs.writeTextDir "log4j2.properties" cfg.logging)
|
(if es5 then (pkgs.writeTextDir "log4j2.properties" cfg.logging)
|
||||||
else (pkgs.writeTextDir "logging.yml" cfg.logging))
|
else (pkgs.writeTextDir "logging.yml" cfg.logging))
|
||||||
];
|
];
|
||||||
# Elasticsearch 5.x won't start when the scripts directory does not exist
|
postBuild = concatStringsSep "\n" (concatLists [
|
||||||
postBuild = if es5 then "${pkgs.coreutils}/bin/mkdir -p $out/scripts" else "";
|
# Elasticsearch 5.x won't start when the scripts directory does not exist
|
||||||
|
(optional es5 "${pkgs.coreutils}/bin/mkdir -p $out/scripts")
|
||||||
|
(optional es6 "ln -s ${cfg.package}/config/jvm.options $out/jvm.options")
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
esPlugins = pkgs.buildEnv {
|
esPlugins = pkgs.buildEnv {
|
||||||
|
@ -27,8 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
wrapProgram $out/bin/elasticsearch \
|
wrapProgram $out/bin/elasticsearch \
|
||||||
--prefix PATH : "${utillinux}/bin/" \
|
--prefix PATH : "${utillinux}/bin/" \
|
||||||
--set JAVA_HOME "${jre_headless}" \
|
--set JAVA_HOME "${jre_headless}"
|
||||||
--set ES_JVM_OPTIONS "$out/config/jvm.options"
|
|
||||||
|
|
||||||
wrapProgram $out/bin/elasticsearch-plugin --set JAVA_HOME "${jre_headless}"
|
wrapProgram $out/bin/elasticsearch-plugin --set JAVA_HOME "${jre_headless}"
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user