mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
fix dependencies
This commit is contained in:
parent
9745bb7cc9
commit
190b806379
4 changed files with 17 additions and 4 deletions
|
@ -5,7 +5,8 @@
|
|||
#=================================================
|
||||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="mongodb-org mongodb-org-server mongo-org-tools"
|
||||
pkg_dependencies="mongodb mongodb-server mongo-tools"
|
||||
pkg_dependencies_buster="mongodb-org mongodb-org-server mongo-org-tools"
|
||||
nodejsversion=12.15.0
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -79,7 +79,11 @@ ynh_print_info --message="Installing dependencies..."
|
|||
ynh_install_nodejs --nodejs_version=$nodejsversion
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" --package="$pkg_dependencies" --key="https://www.mongodb.org/static/pgp/server-4.2.asc"
|
||||
if [ "$(lsb_release --codename --short)" = "buster" ]; then
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" --package="$pkg_dependencies" --key="https://www.mongodb.org/static/pgp/server-4.2.asc"
|
||||
else
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# CREATE A MONGODB DATABASE
|
||||
|
|
|
@ -87,7 +87,11 @@ ynh_print_info --message="Reinstalling dependencies..."
|
|||
ynh_install_nodejs --nodejs_version=$nodejsversion
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" --package="$pkg_dependencies" --key="https://www.mongodb.org/static/pgp/server-4.2.asc"
|
||||
if [ "$(lsb_release --codename --short)" = "buster" ]; then
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" --package="$pkg_dependencies" --key="https://www.mongodb.org/static/pgp/server-4.2.asc"
|
||||
else
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE MONGODB DATABASE
|
||||
|
|
|
@ -164,7 +164,11 @@ ynh_remove_nodejs
|
|||
ynh_install_nodejs --nodejs_version=$nodejsversion
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" --package="$pkg_dependencies" --key="https://www.mongodb.org/static/pgp/server-4.2.asc"
|
||||
if [ "$(lsb_release --codename --short)" = "buster" ]; then
|
||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" --package="$pkg_dependencies" --key="https://www.mongodb.org/static/pgp/server-4.2.asc"
|
||||
else
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
|
|
Loading…
Reference in a new issue