1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

Corrected list of mongo packages

This commit is contained in:
Gérard Collin 2024-05-25 12:03:28 +02:00
parent 364dad9ce2
commit cdd76db2ec

View file

@ -314,6 +314,7 @@ ynh_install_mongo() {
ynh_print_info --message="Installing MongoDB Community Edition ..."
local mongo_debian_release=$(ynh_get_debian_release)
local mongo_packages="mongodb-org-server mongodb-database-tools mongodb-org-shell"
if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then
#Sadly mongo 4.4 is the only version not requiring avx instruction set, so we will install it
@ -321,7 +322,7 @@ ynh_install_mongo() {
mongo_version="4.4"
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" --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="$mongo_packages" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
mongodb_servicename=mongod
# Make sure MongoDB is started and enabled