Change URL to CloudFlare provider

This commit is contained in:
Filippo Squillace 2022-12-18 10:50:22 +00:00 committed by Filippo Squillace
parent 2f6e137e7e
commit 91f95ae4b5
3 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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'

View file

@ -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}"