From 01ec7c17b751cbb0193e00be839eea976235cd5c Mon Sep 17 00:00:00 2001 From: z4yx Date: Tue, 7 Apr 2020 23:17:37 +0800 Subject: [PATCH] mongodb 4.2 not provided for the oldoldstable --- mongodb.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mongodb.sh b/mongodb.sh index 7c6b311..1b7c7ad 100755 --- a/mongodb.sh +++ b/mongodb.sh @@ -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" done 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 echo "APT finished"