Use R2 URL for ext-relay (#676)

pull/677/head 1.5.52
Till Krüss 2022-12-21 01:18:03 -08:00 committed by GitHub
parent 608d9e2259
commit 26d93fe774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3075,7 +3075,7 @@ installRemoteModule() {
;;
relay)
if test -z "$installRemoteModule_version"; then
installRemoteModule_version="$(curl -sSLf https://cachewerk.s3.amazonaws.com/relay/LATEST)"
installRemoteModule_version="$(curl -sSLf https://builds.r2.relay.so/meta/latest)"
installRemoteModule_version="${installRemoteModule_version#v}"
fi
case $(uname -m) in
@ -3087,7 +3087,7 @@ installRemoteModule() {
;;
esac
printf 'Downloading relay v%s (%s)... ' "$installRemoteModule_version" "$installRemoteModule_hardware"
installRemoteModule_url="https://cachewerk.s3.amazonaws.com/relay/v${installRemoteModule_version}/relay-v${installRemoteModule_version}-php${PHP_MAJDOTMIN_VERSION}-${DISTRO}-${installRemoteModule_hardware}.tar.gz"
installRemoteModule_url="https://builds.r2.relay.so/v${installRemoteModule_version}/relay-v${installRemoteModule_version}-php${PHP_MAJDOTMIN_VERSION}-${DISTRO}-${installRemoteModule_hardware}.tar.gz"
installRemoteModule_src="$(getPackageSource $installRemoteModule_url)"
echo 'done.'
cp -- "$installRemoteModule_src/relay-pkg.so" "$PHP_EXTDIR/relay.so"