mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
Update to last example_ynh
This commit is contained in:
parent
5bee6a9e84
commit
8493cc60e1
3 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="mongodb mongodb-server"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -99,19 +99,17 @@ ynh_print_info "Installing dependencies..."
|
|||
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
||||
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
||||
|
||||
ynh_print_info "Installing nodejs ..."
|
||||
ynh_install_nodejs 8.15.1
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_print_info "Installing mongodb dependencies ..."
|
||||
ynh_install_app_dependencies "mongodb mongodb-server"
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
#=================================================
|
||||
# Start MONGODB
|
||||
# START MONGODB
|
||||
#=================================================
|
||||
ynh_print_info "Starting mongodb ..."
|
||||
|
||||
# Start mogodb
|
||||
ynh_print_info "Starting mongodb ..."
|
||||
systemctl enable mongodb
|
||||
systemctl restart mongodb
|
||||
|
||||
|
|
|
@ -88,8 +88,7 @@ ynh_print_info "Reinstalling dependencies..."
|
|||
ynh_install_nodejs 8.15.1
|
||||
ynh_use_nodejs
|
||||
|
||||
# Install mongodb
|
||||
ynh_install_app_dependencies "mongodb mongodb-server"
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE MONGODB DATABASE
|
||||
|
|
Loading…
Reference in a new issue