mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
Merge remote-tracking branch 'origin/pull/172'
This commit is contained in:
commit
e5d2d1c618
@ -8,8 +8,8 @@ yum_sync="${_here}/yum-sync.py"
|
|||||||
BASE_PATH="${TUNASYNC_WORKING_DIR}"
|
BASE_PATH="${TUNASYNC_WORKING_DIR}"
|
||||||
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"http://repo.mongodb.org"}
|
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"http://repo.mongodb.org"}
|
||||||
|
|
||||||
MONGO_VERSIONS=("6.0" "5.0" "4.4" "4.2")
|
MONGO_VERSIONS=("7.0" "6.0" "5.0" "4.4" "4.2")
|
||||||
STABLE_VERSION="5.0"
|
STABLE_VERSION="7.0"
|
||||||
|
|
||||||
YUM_PATH="${BASE_PATH}/yum"
|
YUM_PATH="${BASE_PATH}/yum"
|
||||||
APT_PATH="${BASE_PATH}/apt"
|
APT_PATH="${BASE_PATH}/apt"
|
||||||
@ -19,7 +19,7 @@ export REPO_SIZE_FILE=/tmp/reposize.$RANDOM
|
|||||||
|
|
||||||
components=$(printf ",%s" "${MONGO_VERSIONS[@]}")
|
components=$(printf ",%s" "${MONGO_VERSIONS[@]}")
|
||||||
components=${components:1}
|
components=${components:1}
|
||||||
"$yum_sync" "${BASE_URL}/yum/redhat/@{os_ver}/mongodb-org/@{comp}/@{arch}/" 7 "$components" x86_64 "el@{os_ver}-@{comp}" "$YUM_PATH"
|
"$yum_sync" "${BASE_URL}/yum/redhat/@{os_ver}/mongodb-org/@{comp}/@{arch}/" 7,9 "$components" x86_64 "el@{os_ver}-@{comp}" "$YUM_PATH"
|
||||||
pushd "${YUM_PATH}"
|
pushd "${YUM_PATH}"
|
||||||
for stable in el*-${STABLE_VERSION}; do
|
for stable in el*-${STABLE_VERSION}; do
|
||||||
# e.g. "el8" -> "el8-4.2"
|
# e.g. "el8" -> "el8-4.2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user