mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 02:34:30 +00:00
Change URL to CloudFlare provider
This commit is contained in:
parent
2f6e137e7e
commit
91f95ae4b5
3 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue