This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new 0197305c779 [v3-1-test] Fix install_java.sh (#56211) (#56358)
0197305c779 is described below
commit 0197305c779dcb1b10d531b040e35a3e50d9809f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Oct 13 09:22:05 2025 +0200
[v3-1-test] Fix install_java.sh (#56211) (#56358)
(cherry picked from commit 767ae70fbc12b80363c58bc8dfba020c5bfb26e2)
Co-authored-by: VladaZakharova <[email protected]>
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."