From 810f2c625d688c5e15e46ee8f72662491e8a856d Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Fri, 27 Mar 2020 23:48:42 +0300 Subject: jdk.nix: Add ipmi --- jdk.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/jdk.nix b/jdk.nix index 1e25c5982c6f..cefe9d8a7e39 100644 --- a/jdk.nix +++ b/jdk.nix @@ -57,10 +57,20 @@ in (stdenv.mkDerivation { mkdir -p $out/bin cat > $out/bin/javaws <<'EOF' #!${bash}/bin/bash -e - exec -a javaws ${mj-adoptopenjdk-icedtea-web7}/bin/javaws -Xnofork -Xignoreheaders -allowredirect -nosecurity "$@" + LANG=${glibcLocales}/lib/locale/locale-archive + exec -a javaws ${mj-adoptopenjdk-icedtea-web7}/bin/javaws -verbose "$@" EOF chmod 555 $out/bin/javaws + cat > $out/bin/ipmi <<'EOF' + #!${bash}/bin/bash -e + set -x + HOST=$IPMI_HOST + COOKIE=$(curl --data "WEBVAR_USERNAME=$IPMI_USER&WEBVAR_PASSWORD=$IPMI_PASSWORD" http://$HOST/rpc/WEBSES/create.asp | grep SESSION_COOKIE | cut -d\' -f 4) + curl --cookie Cookie=SessionCookie=$COOKIE http://$HOST/Java/jviewer.jnlp --output $IPMI_OUTPUT + EOF + chmod 555 $out/bin/ipmi + cat > $out/bin/firefox-esr-52 <<'EOF' #!${bash}/bin/bash -e exec -a firefox-esr-52 ${mj-firefox}/bin/firefox "$@" -- cgit v1.2.3