From e020faacaa4d319826a2f6c6b81d52a8842a575e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 5 Feb 2019 14:29:09 +0100 Subject: [PATCH] Apply example_ynh to install and backup --- README.md | 14 +++++++++----- scripts/backup | 12 +++++++++++- scripts/install | 7 +++++-- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ee4286f..f3a7c84 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,19 @@ # Wekan for Yunohost -Wekan is an open-source kanban board (task manager and organizer) +[![Integration level](https://dash.yunohost.org/integration/REPLACEBYYOURAPP.svg)](https://dash.yunohost.org/appci/app/REPLACEBYYOURAPP) +[![Install REPLACEBYYOURAPP with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=REPLACEBYYOURAPP) -[![Integration level](https://dash.yunohost.org/integration/wekan.svg)](https://dash.yunohost.org/appci/app/wekan) -[![Install Wordpress with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](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 -![](screenshot.jpg) +![](Link to an screenshot for this app) ## Status diff --git a/scripts/backup b/scripts/backup index 90f0a37..e81e779 100644 --- a/scripts/backup +++ b/scripts/backup @@ -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" #================================================= diff --git a/scripts/install b/scripts/install index 18c94e9..d05528f 100755 --- a/scripts/install +++ b/scripts/install @@ -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