Update repository configuration

This commit is contained in:
Edi Septriyanto
2020-12-23 23:38:35 +07:00
parent 49882d3f61
commit 2fb8fc35ec

View File

@@ -43,16 +43,16 @@ function add_mongodb_repo() {
case ${DISTRIB_NAME} in
debian)
case ${RELEASE_NAME} in
"buster")
MONGODB_VERSION="4.2" # Only v4.2 supported for Buster
;;
"jessie")
if version_older_than "4.1" "${MONGODB_VERSION}"; then
MONGODB_VERSION="4.1"
fi
;;
esac
#case ${RELEASE_NAME} in
# "buster")
# MONGODB_VERSION="4.2" # Only v4.2 supported for Buster
# ;;
# "jessie")
# if version_older_than "4.1" "${MONGODB_VERSION}"; then
# MONGODB_VERSION="4.1"
# fi
# ;;
#esac
if [ ! -f "/etc/apt/sources.list.d/mongodb-org-${MONGODB_VERSION}-${RELEASE_NAME}.list" ]; then
run touch "/etc/apt/sources.list.d/mongodb-org-${MONGODB_VERSION}-${RELEASE_NAME}.list"