mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
Upgrade ynh_mongo_db
This commit is contained in:
parent
5c93cb6583
commit
9f43c740b6
5 changed files with 8 additions and 12 deletions
|
@ -79,8 +79,7 @@ ynh_script_progression --message="Installing dependencies..."
|
|||
ynh_install_app_dependencies $pkg_dependencies
|
||||
ynh_install_nodejs --nodejs_version=$nodejsversion
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_mongo_install
|
||||
ynh_install_mongo
|
||||
|
||||
#=================================================
|
||||
# CREATE A MONGODB DATABASE
|
||||
|
|
|
@ -60,8 +60,7 @@ ynh_script_progression --message="Removing dependencies..."
|
|||
# Remove metapackage and its dependencies
|
||||
ynh_remove_app_dependencies
|
||||
ynh_remove_nodejs
|
||||
|
||||
ynh_mongo_remove
|
||||
ynh_remove_mongo
|
||||
|
||||
#=================================================
|
||||
# REMOVE APP MAIN DIR
|
||||
|
|
|
@ -89,8 +89,7 @@ ynh_script_progression --message="Reinstalling dependencies..."
|
|||
ynh_install_app_dependencies $pkg_dependencies
|
||||
ynh_install_nodejs --nodejs_version=$nodejsversion
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_mongo_install
|
||||
ynh_install_mongo
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE MONGODB DATABASE
|
||||
|
|
|
@ -180,8 +180,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
|||
ynh_remove_nodejs
|
||||
ynh_install_nodejs --nodejs_version=$nodejsversion
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_mongo_install
|
||||
ynh_install_mongo
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
|
|
|
@ -303,10 +303,10 @@ ynh_mongo_remove_db() {
|
|||
|
||||
# Install MongoDB and integrate MongoDB service in YunoHost
|
||||
#
|
||||
# usage: ynh_mongo_install
|
||||
# usage: ynh_install_mongo
|
||||
#
|
||||
#
|
||||
ynh_mongo_install() {
|
||||
ynh_install_mongo() {
|
||||
# Define Mongo Service Name
|
||||
if [ "$(lsb_release --codename --short)" = "buster" ]; then
|
||||
ynh_install_extra_app_dependencies --repo="$MONGO_REPO_BUSTER" --package="$MONGO_DEPENDENCIES_BUSTER" --key="$MONGO_KEY_BUSTER"
|
||||
|
@ -329,10 +329,10 @@ ynh_mongo_install() {
|
|||
# Only remove the MongoDB service integration in YunoHost for now
|
||||
# if MongoDB package as been removed
|
||||
#
|
||||
# usage: ynh_mongo_remove
|
||||
# usage: ynh_remove_mongo
|
||||
#
|
||||
#
|
||||
ynh_mongo_remove() {
|
||||
ynh_remove_mongo() {
|
||||
# Only remove the mongodb service if it is not installed.
|
||||
if ! ynh_package_is_installed --package="mongodb*"
|
||||
then
|
||||
|
|
Loading…
Add table
Reference in a new issue