From 021297b2ce92108ff58695a58a79c8ee3e90fa2d Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Dec 2025 00:01:18 +0100 Subject: [PATCH] Update Reitti to Java 25 for 3.0.0 compatibility (#10164) * Initial plan * Update Java version from 24 to 25 for Reitti 3.0.0 compatibility Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> * Add Java 25 setup to update script in ct/reitti.sh --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --- ct/reitti.sh | 4 +++- install/reitti-install.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ct/reitti.sh b/ct/reitti.sh index 9407e7b7f..9c3d01ebd 100644 --- a/ct/reitti.sh +++ b/ct/reitti.sh @@ -32,6 +32,8 @@ function update_script() { systemctl stop reitti msg_ok "Stopped Service" + JAVA_VERSION="25" setup_java + rm -f /opt/reitti/reitti.jar USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "reitti" "dedicatedcode/reitti" "singlefile" "latest" "/opt/reitti" "reitti-app.jar" mv /opt/reitti/reitti-*.jar /opt/reitti/reitti.jar @@ -65,4 +67,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" \ No newline at end of file diff --git a/install/reitti-install.sh b/install/reitti-install.sh index 407306f18..f602dbde0 100644 --- a/install/reitti-install.sh +++ b/install/reitti-install.sh @@ -21,7 +21,7 @@ $STD apt install -y \ zstd msg_ok "Installed Dependencies" -JAVA_VERSION="24" setup_java +JAVA_VERSION="25" setup_java PG_VERSION="17" PG_MODULES="postgis" setup_postgresql PG_DB_NAME="reitti_db" PG_DB_USER="reitti" setup_postgresql_db