Unverified Commit 754097db authored by Philipp Herzog's avatar Philipp Herzog Committed by Philipp Herzog
Browse files
parent c6066d53
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -210,6 +210,7 @@ in
              ln -sfT "${cfg.package}/plugins" "${cfg.dataDir}/plugins"
              ln -sfT ${cfg.package}/lib ${cfg.dataDir}/lib
              ln -sfT ${cfg.package}/modules ${cfg.dataDir}/modules
              ln -sfT ${cfg.package}/agent ${cfg.dataDir}/agent

              # opensearch needs to create the opensearch.keystore in the config directory
              # so this directory needs to be writable.
+3 −3
Original line number Diff line number Diff line
@@ -12,11 +12,11 @@

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "opensearch";
  version = "2.19.2";
  version = "3.5.0";

  src = fetchurl {
    url = "https://artifacts.opensearch.org/releases/bundle/opensearch/${finalAttrs.version}/opensearch-${finalAttrs.version}-linux-x64.tar.gz";
    hash = "sha256-EaOx8vs3y00ln7rUiaCGoD+HhiQY4bhQAzu18VfaTYw=";
    hash = "sha256-0d6TQU1LTE983CsYbaK4fNuC86VAx23XD2xR6y2NuHw=";
  };

  nativeBuildInputs = [
@@ -31,7 +31,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    runHook preInstall

    mkdir -p $out
    cp -R bin config lib modules plugins $out
    cp -R bin config lib modules plugins agent $out

    substituteInPlace $out/bin/opensearch \
      --replace 'bin/opensearch-keystore' "$out/bin/opensearch-keystore"