mirror of
https://github.com/YunoHost-Apps/overleaf_ynh.git
synced 2024-09-03 19:56:27 +02:00
fix
This commit is contained in:
parent
2895495714
commit
f160ca2c9a
1 changed files with 11 additions and 2 deletions
|
@ -329,7 +329,14 @@ ynh_install_mongo() {
|
||||||
ynh_print_info --message="Installing MongoDB Community Edition ..."
|
ynh_print_info --message="Installing MongoDB Community Edition ..."
|
||||||
local mongo_debian_release=$(ynh_get_debian_release)
|
local mongo_debian_release=$(ynh_get_debian_release)
|
||||||
|
|
||||||
if [ "$mongo_debian_release" == bullseye ] ; 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."
|
||||||
|
mongo_debian_release=buster
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$mongo_debian_release" == buster ] ; then
|
||||||
|
ubuntu_version="bionic"
|
||||||
|
elif [ "$mongo_debian_release" == bullseye ] ; then
|
||||||
ubuntu_version="focal"
|
ubuntu_version="focal"
|
||||||
elif [ "$mongo_debian_release" == bookworm ] ; then
|
elif [ "$mongo_debian_release" == bookworm ] ; then
|
||||||
ubuntu_version="jammy"
|
ubuntu_version="jammy"
|
||||||
|
@ -340,6 +347,8 @@ ynh_install_mongo() {
|
||||||
mongo_version="4.4"
|
mongo_version="4.4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ynh_install_extra_app_dependencies \
|
ynh_install_extra_app_dependencies \
|
||||||
--repo="deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $ubuntu_version/mongodb-org/$mongo_version multiverse" \
|
--repo="deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $ubuntu_version/mongodb-org/$mongo_version multiverse" \
|
||||||
--package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" \
|
--package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue