diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-04-23 02:29:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 14:29:03 +0800 |
commit | 5e389228f61844c0d59d5bc5974483dae0aa1b8b (patch) | |
tree | 7f231aa52edb884f5762cce71c88c8960520705c /contrib | |
parent | 6bff6e3a1f21c6c1db95d5303bba2fca61d72202 (diff) | |
download | gitea-5e389228f61844c0d59d5bc5974483dae0aa1b8b.tar.gz gitea-5e389228f61844c0d59d5bc5974483dae0aa1b8b.zip |
update upgrade script to use new CDN (#24280)
The upgrade script has to deal with redirects due to pointing to former
CDN, this reduces HTTP calls by 2
setting as skip-changelog, due to it being a contrib script
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/upgrade.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/upgrade.sh b/contrib/upgrade.sh index 3a98c277d6..2d15f17332 100755 --- a/contrib/upgrade.sh +++ b/contrib/upgrade.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # This is an update script for gitea installed via the binary distribution -# from dl.gitea.io on linux as systemd service. It performs a backup and updates +# from dl.gitea.com on linux as systemd service. It performs a backup and updates # Gitea in place. # NOTE: This adds the GPG Signing Key of the Gitea maintainers to the keyring. # Depends on: bash, curl, xz, sha256sum. optionally jq, gpg @@ -69,7 +69,7 @@ require curl xz sha256sum "$sudocmd" # select version to install if [[ -z "${giteaversion:-}" ]]; then require jq - giteaversion=$(curl --connect-timeout 10 -sL https://dl.gitea.io/gitea/version.json | jq -r .latest.version) + giteaversion=$(curl --connect-timeout 10 -sL https://dl.gitea.com/gitea/version.json | jq -r .latest.version) echo "Latest available version is $giteaversion" fi @@ -91,7 +91,7 @@ cd "$giteahome" # needed for gitea dump later # download new binary binname="gitea-${giteaversion}-${arch}" -binurl="https://dl.gitea.io/gitea/${giteaversion}/${binname}.xz" +binurl="https://dl.gitea.com/gitea/${giteaversion}/${binname}.xz" echo "Downloading $binurl..." curl --connect-timeout 10 --silent --show-error --fail --location -O "$binurl{,.sha256,.asc}" |