File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -643,8 +643,14 @@ function setup_mongodb() {
643643 DISTRO_CODENAME=$( awk -F= ' /^VERSION_CODENAME=/{ print $2 }' /etc/os-release)
644644
645645 case " $DISTRO_ID " in
646- ubuntu) MONGO_BASE_URL=" https://repo.mongodb.org/apt/ubuntu" ;;
647- debian) MONGO_BASE_URL=" https://repo.mongodb.org/apt/debian" ;;
646+ ubuntu)
647+ MONGO_BASE_URL=" https://repo.mongodb.org/apt/ubuntu"
648+ REPO_COMPONENT=" multiverse"
649+ ;;
650+ debian)
651+ MONGO_BASE_URL=" https://repo.mongodb.org/apt/debian"
652+ REPO_COMPONENT=" main"
653+ ;;
648654 * )
649655 msg_error " Unsupported distribution: $DISTRO_ID "
650656 return 1
@@ -676,7 +682,7 @@ function setup_mongodb() {
676682 fi
677683
678684 curl -fsSL " https://pgp.mongodb.com/server-${MONGO_VERSION} .asc" | gpg --dearmor -o " /etc/apt/trusted.gpg.d/mongodb-${MONGO_VERSION} .gpg"
679- echo " deb [signed-by=/etc/apt/trusted.gpg.d/mongodb-${MONGO_VERSION} .gpg] ${MONGO_BASE_URL} ${DISTRO_CODENAME} /mongodb-org/${MONGO_VERSION} main " \
685+ echo " deb [signed-by=/etc/apt/trusted.gpg.d/mongodb-${MONGO_VERSION} .gpg] ${MONGO_BASE_URL} ${DISTRO_CODENAME} /mongodb-org/${MONGO_VERSION} ${REPO_COMPONENT} " \
680686 > " $REPO_LIST "
681687
682688 $STD apt-get update || {
You can’t perform that action at this time.
0 commit comments