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
|
#!/bin/bash
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# COMMON VARIABLES
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# dependencies used by the app
|
||||||
|
pkg_dependencies="mongodb mongodb-server"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -99,19 +99,17 @@ ynh_print_info "Installing dependencies..."
|
||||||
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
||||||
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
||||||
|
|
||||||
ynh_print_info "Installing nodejs ..."
|
|
||||||
ynh_install_nodejs 8.15.1
|
ynh_install_nodejs 8.15.1
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
|
|
||||||
ynh_print_info "Installing mongodb dependencies ..."
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_install_app_dependencies "mongodb mongodb-server"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Start MONGODB
|
# START MONGODB
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_print_info "Starting mongodb ..."
|
||||||
|
|
||||||
# Start mogodb
|
# Start mogodb
|
||||||
ynh_print_info "Starting mongodb ..."
|
|
||||||
systemctl enable mongodb
|
systemctl enable mongodb
|
||||||
systemctl restart mongodb
|
systemctl restart mongodb
|
||||||
|
|
||||||
|
|
|
@ -88,8 +88,7 @@ ynh_print_info "Reinstalling dependencies..."
|
||||||
ynh_install_nodejs 8.15.1
|
ynh_install_nodejs 8.15.1
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
|
|
||||||
# Install mongodb
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_install_app_dependencies "mongodb mongodb-server"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE MONGODB DATABASE
|
# RESTORE THE MONGODB DATABASE
|
||||||
|
|
Loading…
Reference in a new issue