This is an automated email from the ASF dual-hosted git repository.
shahar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 767ae70fbc1 Fix install_java.sh (#56211)
767ae70fbc1 is described below
commit 767ae70fbc12b80363c58bc8dfba020c5bfb26e2
Author: VladaZakharova <[email protected]>
AuthorDate: Fri Oct 3 09:20:54 2025 +0000
Fix install_java.sh (#56211)
Co-authored-by: Ulada Zakharava <[email protected]>
---
scripts/in_container/bin/install_java.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/scripts/in_container/bin/install_java.sh
b/scripts/in_container/bin/install_java.sh
index 8089e4338d9..0aa15f82095 100755
--- a/scripts/in_container/bin/install_java.sh
+++ b/scripts/in_container/bin/install_java.sh
@@ -25,6 +25,15 @@ BIN_PATH="/files/bin/java"
if [[ $# != "0" && ${1} == "--reinstall" ]]; then
rm -rf "${INSTALL_DIR}"
rm -f "${BIN_PATH}"
+ mapfile -t files_to_delete < <(find /files/bin -type l -exec bash -c '
+ for link; do
+ target=$(readlink "$link")
+ if [[ "$target" == /files/opt/java/* ]]; then
+ echo "$link"
+ fi
+ done
+ ' _ {} +)
+ rm -rf "${files_to_delete[@]}"
fi
hash -r
@@ -34,7 +43,7 @@ if command -v java; then
exit 1
fi
-DOWNLOAD_URL='https://download.java.net/openjdk/jdk8u41/ri/openjdk-8u41-b04-linux-x64-14_jan_2020.tar.gz'
+DOWNLOAD_URL="https://download.java.net/openjdk/jdk25/ri/openjdk-25+36_linux-x64_bin.tar.gz"
if [[ -e ${INSTALL_DIR} ]]; then
echo "The install directory (${INSTALL_DIR}) already exists. This may mean
java is already installed."