mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
Apply example_ynh to install and backup
This commit is contained in:
parent
dc1d582d64
commit
e020faacaa
3 changed files with 25 additions and 8 deletions
14
README.md
14
README.md
|
@ -1,15 +1,19 @@
|
|||
# Wekan for Yunohost
|
||||
|
||||
Wekan is an open-source kanban board (task manager and organizer)
|
||||
[](https://dash.yunohost.org/appci/app/REPLACEBYYOURAPP)
|
||||
[](https://install-app.yunohost.org/?app=REPLACEBYYOURAPP)
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/wekan)
|
||||
[](https://install-app.yunohost.org/?app=wekan)
|
||||
> *This package allow you to install REPLACEBYYOURAPP quickly and simply on a YunoHost server.
|
||||
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.*
|
||||
|
||||
## Overview
|
||||
Wekan is an open-source kanban board (task manager and organizer)
|
||||
|
||||
**Shipped version:** 2.09
|
||||
|
||||
## Screenshot
|
||||
## Screenshots
|
||||
|
||||

|
||||

|
||||
|
||||
## Status
|
||||
|
||||
|
|
|
@ -28,11 +28,21 @@ domain=$(ynh_app_setting_get $app domain)
|
|||
#=================================================
|
||||
# STANDARD BACKUP STEPS
|
||||
#=================================================
|
||||
# BACKUP OF THE MAIN DIR OF THE APP
|
||||
# BACKUP THE APP MAIN DIR
|
||||
#=================================================
|
||||
|
||||
ynh_backup "$final_path"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# BACKUP SYSTEMD
|
||||
#=================================================
|
||||
|
||||
ynh_backup "/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -45,6 +45,9 @@ ynh_webpath_register $app $domain $path_url
|
|||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
#=================================================
|
||||
|
||||
ynh_app_setting_set $app domain $domain
|
||||
ynh_app_setting_set $app path $path_url
|
||||
ynh_app_setting_set $app is_public $is_public
|
||||
|
||||
#=================================================
|
||||
|
@ -97,8 +100,8 @@ ynh_system_user_create $app "$final_path"
|
|||
ynh_print_info "Installing npm dependencies ..."
|
||||
chown -R $app $final_path
|
||||
pushd $final_path/programs/server
|
||||
ynh_use_nodejs
|
||||
npm install
|
||||
ynh_use_nodejs
|
||||
npm install
|
||||
popd
|
||||
|
||||
# Start mogodb
|
||||
|
|
Loading…
Add table
Reference in a new issue