Skip to content

Commit 5e38922

Browse files
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
1 parent 6bff6e3 commit 5e38922

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/upgrade.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# This is an update script for gitea installed via the binary distribution
3-
# from dl.gitea.io on linux as systemd service. It performs a backup and updates
3+
# from dl.gitea.com on linux as systemd service. It performs a backup and updates
44
# Gitea in place.
55
# NOTE: This adds the GPG Signing Key of the Gitea maintainers to the keyring.
66
# Depends on: bash, curl, xz, sha256sum. optionally jq, gpg
@@ -69,7 +69,7 @@ require curl xz sha256sum "$sudocmd"
6969
# select version to install
7070
if [[ -z "${giteaversion:-}" ]]; then
7171
require jq
72-
giteaversion=$(curl --connect-timeout 10 -sL https://dl.gitea.io/gitea/version.json | jq -r .latest.version)
72+
giteaversion=$(curl --connect-timeout 10 -sL https://dl.gitea.com/gitea/version.json | jq -r .latest.version)
7373
echo "Latest available version is $giteaversion"
7474
fi
7575

@@ -91,7 +91,7 @@ cd "$giteahome" # needed for gitea dump later
9191

9292
# download new binary
9393
binname="gitea-${giteaversion}-${arch}"
94-
binurl="https://dl.gitea.io/gitea/${giteaversion}/${binname}.xz"
94+
binurl="https://dl.gitea.com/gitea/${giteaversion}/${binname}.xz"
9595
echo "Downloading $binurl..."
9696
curl --connect-timeout 10 --silent --show-error --fail --location -O "$binurl{,.sha256,.asc}"
9797

0 commit comments

Comments
 (0)