From ecbc302c68ce2cf44ca779ed6edace0d46180b34 Mon Sep 17 00:00:00 2001 From: Ryan Sullivan Date: Tue, 13 Oct 2026 15:55:44 -0700 Subject: [PATCH] Fix URL for downloading OneDev latest release (#17915) Published sites use a new path, per https://code.onedev.io/onedev/server/~issues/3179#IssueComment-11050 --- ct/onedev.sh | 2 +- install/onedev-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/onedev.sh b/ct/onedev.sh index 99399a1fa..6d6c9096b 100644 --- a/ct/onedev.sh +++ b/ct/onedev.sh @@ -39,7 +39,7 @@ function update_script() { msg_info "Updating OneDev" cd /opt - curl -fsSL "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz" -o onedev-latest.tar.gz + curl -fsSL "https://code.onedev.io/onedev/server/~sites/public/onedev-latest.tar.gz" -o onedev-latest.tar.gz tar -xzf onedev-latest.tar.gz $STD /opt/onedev-latest/bin/upgrade.sh /opt/onedev rm -rf /opt/onedev-latest diff --git a/install/onedev-install.sh b/install/onedev-install.sh index 3b20d1d2f..7b34bfa3c 100644 --- a/install/onedev-install.sh +++ b/install/onedev-install.sh @@ -24,7 +24,7 @@ JAVA_VERSION="21" setup_java msg_info "Installing OneDev" RELEASE=$(get_latest_github_release "theonedev/onedev" false) cd /opt -curl -fsSL "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz" -o onedev-latest.tar.gz +curl -fsSL "https://code.onedev.io/onedev/server/~sites/public/onedev-latest.tar.gz" -o onedev-latest.tar.gz tar -xzf onedev-latest.tar.gz mv /opt/onedev-latest /opt/onedev $STD /opt/onedev/bin/server.sh install