1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreto_ynh.git synced 2024-09-03 19:36:14 +02:00

Add templates

This commit is contained in:
ericgaspar 2021-07-02 15:29:02 +02:00
parent abf8804461
commit 33982a4d66
No known key found for this signature in database
GPG key ID: 574F281483054D44
7 changed files with 17 additions and 11 deletions

View file

@ -1,8 +1,8 @@
;; Test complet
; Manifest
domain="domain.tld" (DOMAIN)
domain="domain.tld"
etherpad_instance="https://annuel2.framapad.org"
is_public=1 (PUBLIC|public=1|private=0)
is_public=1
creation_open=1
; Checks
pkg_linter=1
@ -14,7 +14,6 @@
upgrade=1
backup_restore=1
multi_instance=1
port_already_use=0
change_url=1
;;; Options
Email=ljf+libreto_ynh@reflexlibre.net

0
doc/DISCLAIMER.md Normal file
View file

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View file

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View file

@ -8,6 +8,13 @@
},
"version": "0.0.20180605~ynh2",
"url": "https://libreto.net",
"upstream": {
"license": "GPL-3.0-or-later",
"website": "https://libreto.net",
"demo": "https://libreto.net",
"admindoc": "https://github.com/Ventricule/libreto",
"code": "https://github.com/Ventricule/libreto"
},
"license": "GPL-3.0-or-later",
"maintainer": {
"name": "ljf",
@ -15,7 +22,7 @@
"url": "https://reflexlibre.net"
},
"requirements": {
"yunohost": ">= 4.1.7"
"yunohost": ">= 4.2.0"
},
"multi_instance": true,
"services": [

View file

@ -27,7 +27,7 @@ app=$YNH_APP_INSTANCE_NAME
ynh_script_progression --message="Loading installation settings..." --weight=1
# Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get $app final_path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP

View file

@ -15,12 +15,12 @@ source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
path_url=$(ynh_app_setting_get $app path)
is_public=$(ynh_app_setting_get $app is_public)
final_path=$(ynh_app_setting_get $app final_path)
etherpad_instance=$(ynh_app_setting_get $app etherpad_instance)
creation_open=$(ynh_app_setting_get $app creation_open)
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
etherpad_instance=$(ynh_app_setting_get --app=$app --key=etherpad_instance)
creation_open=$(ynh_app_setting_get --app=$app --key=creation_open)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP