runtime/build_openjdk.sh
Adam Štrauch ed6ea70fa5
Some checks failed
Test build / build (push) Failing after 35m53s
A lot of new stuff
2024-08-13 19:59:45 +02:00

16 lines
318 B
Bash
Executable File

#!/bin/bash
set -e
mkdir -p /opt/techs
VERSION=$1
HASH=$2
cd /usr/src
wget https://download.java.net/java/GA/jdk${VERSION}/${HASH}/9/GPL/openjdk-${VERSION}_linux-x64_bin.tar.gz
tar xf openjdk-${VERSION}_linux-x64_bin.tar.gz
mv jdk-${VERSION} /opt/techs/openjdk-$VERSION
rm openjdk-${VERSION}_linux-x64_bin.tar.gz