mirror of
https://github.com/YunoHost-Apps/overleaf_ynh.git
synced 2024-09-03 19:56:27 +02:00
make arm compabible
This commit is contained in:
parent
408cb717cc
commit
616cd4b291
1 changed files with 14 additions and 2 deletions
|
@ -333,12 +333,24 @@ 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)."
|
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"
|
mongo_version="4.4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$mongo_version" == "4.4" && "$mongo_debian_release" != "buster" ]]; then
|
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."
|
ynh_print_warn --message="Switched to Buster install as Mongo 4.4 is not compatible with $mongo_debian_release."
|
||||||
mongo_debian_release=buster
|
mongo_debian_release=buster
|
||||||
fi
|
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-server mongodb-org-shell mongodb-database-tools" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
|
if [ "$mongo_debian_release" == buster ] ; then
|
||||||
|
ubuntu_version="bionic"
|
||||||
|
elif [ "$mongo_debian_release" == bullseye ] ; then
|
||||||
|
ubuntu_version="focal"
|
||||||
|
elif [ "$mongo_debian_release" == bookworm ] ; then
|
||||||
|
ubuntu_version="jammy"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ynh_install_extra_app_dependencies \
|
||||||
|
--repo="deb https://repo.mongodb.org/apt/ubuntu $ubuntu_version/mongodb-org/$mongo_version multiverse" \
|
||||||
|
--package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" \
|
||||||
|
--key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
|
||||||
mongodb_servicename=mongod
|
mongodb_servicename=mongod
|
||||||
|
|
||||||
# Make sure MongoDB is started and enabled
|
# Make sure MongoDB is started and enabled
|
||||||
|
|
Loading…
Reference in a new issue