mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
Cleaned up mongo install for bookworm
This commit is contained in:
parent
c329babd1c
commit
59d962436d
2 changed files with 9 additions and 13 deletions
|
@ -7,7 +7,7 @@ name = "Dont-code Services"
|
|||
description.en = "Install services and databases needed to support Dont-code platform"
|
||||
description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code"
|
||||
|
||||
version = "0.3.1~ynh2"
|
||||
version = "0.3.1~ynh3"
|
||||
|
||||
maintainers = ["Dont-code Team"]
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
readonly YNH_DEFAULT_MONGO_VERSION=4.4
|
||||
# Declare the actual MongoDB version to use: 4.4 ; 5.0 ; 6.0
|
||||
readonly YNH_DEFAULT_MONGO_VERSION=6.0
|
||||
# Declare the actual MongoDB version to use: 4.4 ; 5.0 ; 6.0 ; 7.0
|
||||
# A packager willing to use another version of MongoDB can override the variable into its _common.sh.
|
||||
YNH_MONGO_VERSION=${YNH_MONGO_VERSION:-$YNH_DEFAULT_MONGO_VERSION}
|
||||
|
||||
|
@ -320,12 +320,8 @@ ynh_install_mongo() {
|
|||
ynh_print_warn --message="Installing Mongo 4.4 as $mongo_version is not compatible with your cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64)."
|
||||
mongo_version="4.4"
|
||||
fi
|
||||
if [[ "$mongo_version" == "4.4" && "$mongo_debian_release" != "buster" ]]; then
|
||||
ynh_print_warn --message="Switched to buster install as Mongo 4.4 is not compatible with $mongo_debian_release."
|
||||
mongo_debian_release=buster
|
||||
fi
|
||||
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
|
||||
mongodb_servicename=mongod
|
||||
|
||||
# Make sure MongoDB is started and enabled
|
||||
|
|
Loading…
Reference in a new issue