From 91f95ae4b593e70c06db644e5d54f3b1a0bb21f0 Mon Sep 17 00:00:00 2001 From: Filippo Squillace Date: Sun, 18 Dec 2022 10:50:22 +0000 Subject: [PATCH] Change URL to CloudFlare provider --- ci/deploy.sh | 2 +- lib/core/common.sh | 1 + lib/core/setup.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/deploy.sh b/ci/deploy.sh index 0d95fa6..78fbd93 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -7,7 +7,7 @@ IMG_PATH=$1 set -ux MAX_OLD_IMAGES=5 -ENDPOINT="https://gateway.storjshare.io" +ENDPOINT="https://8da1bcd84e423c9b013b69fe1e8b4675.r2.cloudflarestorage.com" # ARCH can be one of: x86, x86_64, arm HOST_ARCH=$(uname -m) diff --git a/lib/core/common.sh b/lib/core/common.sh index 4b2e7ff..7062ecd 100644 --- a/lib/core/common.sh +++ b/lib/core/common.sh @@ -54,6 +54,7 @@ else fi MAIN_REPO=https://link.storjshare.io/s/jvb5tgarnjtt565fffa44spvyuga/junest-repo +MAIN_REPO=https://pub-a2af2344e8554f6c807bc3db355ae622.r2.dev ENV_REPO=${MAIN_REPO}/${CMD} # shellcheck disable=SC2016 DEFAULT_MIRROR='https://mirror.rackspace.com/archlinux/$repo/os/$arch' diff --git a/lib/core/setup.sh b/lib/core/setup.sh index 7138fc4..749fd66 100644 --- a/lib/core/setup.sh +++ b/lib/core/setup.sh @@ -95,7 +95,7 @@ function setup_env(){ info "Downloading ${NAME}..." builtin cd "${maindir}" || return 1 local imagefile=${CMD}-${arch}.tar.gz - download_cmd "${ENV_REPO}/${imagefile}?download=1" + download_cmd "${ENV_REPO}/${imagefile}" info "Installing ${NAME}..." _setup_env "${maindir}/${imagefile}"