mongodb 4.2 not provided for the oldoldstable

This commit is contained in:
z4yx 2020-04-07 23:17:37 +08:00
parent d204e3aa7f
commit 01ec7c17b7

View File

@ -32,7 +32,12 @@ for mgver in ${MONGO_VERSIONS[@]}; do
"$apt_sync" "$BASE_URL/apt/debian" "@{debian-current}/mongodb-org/$mgver" main amd64,i386 "$DEBIAN_PATH" "$apt_sync" "$BASE_URL/apt/debian" "@{debian-current}/mongodb-org/$mgver" main amd64,i386 "$DEBIAN_PATH"
done done
for dist in "$BASE_URL"/apt/*/dists/*/mongodb-org/; do for dist in "$BASE_URL"/apt/*/dists/*/mongodb-org/; do
[[ -e "${dist}/${STABLE_VERSION}" ]] && (cd "${dist}" && ln -fsn "${STABLE_VERSION}" stable) stable=${STABLE_VERSION}
if [[ $dist == *"trusty"* || $dist == *"jessie"* ]]; then
# 4.2 not provided for the oldoldstable
stable=4.0
fi
[[ -e "${dist}/${stable}" ]] && (cd "${dist}" && ln -fsn "${stable}" stable)
done done
echo "APT finished" echo "APT finished"