mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
Merge pull request #4 from YunoHost-Apps/dev
Support other debian versions
This commit is contained in:
commit
aab42ab058
4 changed files with 6 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
java_version=17
|
java_version=17
|
||||||
|
|
||||||
mongo_version=4.4
|
mongo_version=6.0
|
||||||
|
|
||||||
# Java dependencies used by the app will be installed through the Java helper
|
# Java dependencies used by the app will be installed through the Java helper
|
||||||
pkg_dependencies=""
|
pkg_dependencies=""
|
||||||
|
|
|
@ -123,6 +123,8 @@ ynh_install_java --java_version=$java_version --jdk_type=jre
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
ynh_print_info --message="Debian release is $(ynh_get_debian_release)"
|
||||||
|
|
||||||
# Install the required version of Mongo
|
# Install the required version of Mongo
|
||||||
ynh_install_mongo --mongo_version=$mongo_version
|
ynh_install_mongo --mongo_version=$mongo_version
|
||||||
|
|
||||||
|
|
|
@ -128,6 +128,8 @@ ynh_install_java --java_version=$java_version --jdk_type=jre
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
ynh_print_info --message="Debian release is $(ynh_get_debian_release)"
|
||||||
|
|
||||||
# Install the required version of Mongo
|
# Install the required version of Mongo
|
||||||
ynh_install_mongo --mongo_version=$mongo_version
|
ynh_install_mongo --mongo_version=$mongo_version
|
||||||
|
|
||||||
|
|
|
@ -313,7 +313,7 @@ ynh_install_mongo() {
|
||||||
mongo_version="${mongo_version:-$YNH_MONGO_VERSION}"
|
mongo_version="${mongo_version:-$YNH_MONGO_VERSION}"
|
||||||
|
|
||||||
ynh_print_info --message="Installing MongoDB Community Edition..."
|
ynh_print_info --message="Installing MongoDB Community Edition..."
|
||||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian bullseye/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 $(ynh_get_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"
|
||||||
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