3
0
Fork 0
forked from mirrors/nixpkgs

zookeeper: Fix wrong paths in startup script

This commit is contained in:
Philipp Hausmann 2019-10-03 11:29:57 +02:00 committed by Jon
parent 83be1d4b80
commit 83a341aece

View file

@ -19,14 +19,13 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp -R bin/{zkCli,zkCleanup,zkEnv,zkServer}.sh $out/bin
patchShebangs $out/bin
substituteInPlace $out/bin/zkServer.sh \
--replace /bin/echo ${coreutils}/bin/echo
for i in $out/bin/{zkCli,zkCleanup,zkServer}.sh; do
wrapProgram $i \
--set JAVA_HOME "${jre}" \
--prefix PATH : "${bash}/bin"
done
substituteInPlace $out/bin/zkServer.sh \
--replace /bin/echo ${coreutils}/bin/echo \
--replace "/usr/bin/env bash" ${bash}/bin/bash
chmod -x $out/bin/zkEnv.sh
mkdir -p $out/share/zooinspector