mirror of
https://github.com/YunoHost-Apps/grocy_ynh.git
synced 2024-09-03 19:25:54 +02:00
Merge branch 'testing' into upgrade_full_replace
This commit is contained in:
commit
84dbb4a6d5
13 changed files with 276 additions and 80 deletions
8
ALL_README.md
Normal file
8
ALL_README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# All available README files by language
|
||||
|
||||
- [Read the README in English](README.md)
|
||||
- [Lea el README en español](README_es.md)
|
||||
- [Irakurri README euskaraz](README_eu.md)
|
||||
- [Lire le README en français](README_fr.md)
|
||||
- [Le o README en galego](README_gl.md)
|
||||
- [阅读中文(简体)的 README](README_zh_Hans.md)
|
13
README.md
13
README.md
|
@ -1,5 +1,5 @@
|
|||
<!--
|
||||
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
|
||||
N.B.: This README was automatically generated by <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||
It shall NOT be edited by hand.
|
||||
-->
|
||||
|
||||
|
@ -9,14 +9,15 @@ It shall NOT be edited by hand.
|
|||
|
||||
[](https://install-app.yunohost.org/?app=grocy)
|
||||
|
||||
*[Lire ce readme en français.](./README_fr.md)*
|
||||
*[Read this README in other languages.](./ALL_README.md)*
|
||||
|
||||
> *This package allows you to install Grocy quickly and simply on a YunoHost server.
|
||||
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
||||
> *This package allows you to install Grocy quickly and simply on a YunoHost server.*
|
||||
> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
|
||||
|
||||
## Overview
|
||||
|
||||
grocy is a web-based self-hosted groceries & household management solution for your home.
|
||||
|
||||
**Shipped version:** 4.2.0~ynh1
|
||||
|
||||
**Demo:** <https://en.demo.grocy.info/stockoverview>
|
||||
|
@ -34,9 +35,9 @@ grocy is a web-based self-hosted groceries & household management solution for y
|
|||
|
||||
## Developer info
|
||||
|
||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing).
|
||||
Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing).
|
||||
|
||||
To try the testing branch, please proceed like that.
|
||||
To try the `testing` branch, please proceed like that:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
|
|
48
README_es.md
Normal file
48
README_es.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!--
|
||||
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||
No se debe editar a mano.
|
||||
-->
|
||||
|
||||
# Grocy para Yunohost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/grocy)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=grocy)
|
||||
|
||||
*[Leer este README en otros idiomas.](./ALL_README.md)*
|
||||
|
||||
> *Este paquete le permite instalarGrocy rapidamente y simplement en un servidor YunoHost.*
|
||||
> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.*
|
||||
|
||||
## Descripción general
|
||||
|
||||
grocy is a web-based self-hosted groceries & household management solution for your home.
|
||||
|
||||
**Versión actual:** 4.2.0~ynh1
|
||||
|
||||
**Demo:** <https://en.demo.grocy.info/stockoverview>
|
||||
|
||||
## Capturas
|
||||
|
||||

|
||||
|
||||
## Documentaciones y recursos
|
||||
|
||||
- Sitio web oficial: <https://grocy.info/>
|
||||
- Repositorio del código fuente oficial de la aplicación : <https://github.com/grocy/grocy>
|
||||
- Catálogo YunoHost: <https://apps.yunohost.org/app/grocy>
|
||||
- Reportar un error: <https://github.com/YunoHost-Apps/grocy_ynh/issues>
|
||||
|
||||
## Información para desarrolladores
|
||||
|
||||
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing
|
||||
|
||||
Para probar la rama `testing`, sigue asÍ:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
o
|
||||
sudo yunohost app upgrade grocy -u https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>
|
48
README_eu.md
Normal file
48
README_eu.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!--
|
||||
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
|
||||
EZ editatu eskuz.
|
||||
-->
|
||||
|
||||
# Grocy YunoHost-erako
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/grocy)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=grocy)
|
||||
|
||||
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
|
||||
|
||||
> *Pakete honek Grocy YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
|
||||
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
|
||||
|
||||
## Aurreikuspena
|
||||
|
||||
grocy is a web-based self-hosted groceries & household management solution for your home.
|
||||
|
||||
**Paketatutako bertsioa:** 4.2.0~ynh1
|
||||
|
||||
**Demoa:** <https://en.demo.grocy.info/stockoverview>
|
||||
|
||||
## Pantaila-argazkiak
|
||||
|
||||

|
||||
|
||||
## Dokumentazioa eta baliabideak
|
||||
|
||||
- Aplikazioaren webgune ofiziala: <https://grocy.info/>
|
||||
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/grocy/grocy>
|
||||
- YunoHost Denda: <https://apps.yunohost.org/app/grocy>
|
||||
- Eman errore baten berri: <https://github.com/YunoHost-Apps/grocy_ynh/issues>
|
||||
|
||||
## Garatzaileentzako informazioa
|
||||
|
||||
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing).
|
||||
|
||||
`testing` abarra probatzeko, ondorengoa egin:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
edo
|
||||
sudo yunohost app upgrade grocy -u https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>
|
26
README_fr.md
26
README_fr.md
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
|
||||
It shall NOT be edited by hand.
|
||||
Nota bene : ce README est automatiquement généré par <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||
Il NE doit PAS être modifié à la main.
|
||||
-->
|
||||
|
||||
# Grocy pour YunoHost
|
||||
|
@ -9,15 +9,15 @@ It shall NOT be edited by hand.
|
|||
|
||||
[](https://install-app.yunohost.org/?app=grocy)
|
||||
|
||||
*[Read this readme in english.](./README.md)*
|
||||
*[Lire le README dans d'autres langues.](./ALL_README.md)*
|
||||
|
||||
> *Ce package vous permet d’installer Grocy rapidement et simplement sur un serveur YunoHost.
|
||||
Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.*
|
||||
> *Ce package vous permet d’installer Grocy rapidement et simplement sur un serveur YunoHost.*
|
||||
> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.*
|
||||
|
||||
## Vue d’ensemble
|
||||
|
||||
grocy is a web-based self-hosted groceries & household management solution for your home.
|
||||
**Version incluse :** 4.2.0~ynh1
|
||||
|
||||
|
||||
**Démo :** <https://en.demo.grocy.info/stockoverview>
|
||||
|
||||
|
@ -27,16 +27,16 @@ grocy is a web-based self-hosted groceries & household management solution for y
|
|||
|
||||
## Documentations et ressources
|
||||
|
||||
- Site officiel de l’app : <https://grocy.info/>
|
||||
- Dépôt de code officiel de l’app : <https://github.com/grocy/grocy>
|
||||
- YunoHost Store : <https://apps.yunohost.org/app/grocy>
|
||||
- Signaler un bug : <https://github.com/YunoHost-Apps/grocy_ynh/issues>
|
||||
- Site officiel de l’app : <https://grocy.info/>
|
||||
- Dépôt de code officiel de l’app : <https://github.com/grocy/grocy>
|
||||
- YunoHost Store : <https://apps.yunohost.org/app/grocy>
|
||||
- Signaler un bug : <https://github.com/YunoHost-Apps/grocy_ynh/issues>
|
||||
|
||||
## Informations pour les développeurs
|
||||
|
||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing).
|
||||
Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing).
|
||||
|
||||
Pour essayer la branche testing, procédez comme suit.
|
||||
Pour essayer la branche `testing`, procédez comme suit :
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
|
@ -44,4 +44,4 @@ ou
|
|||
sudo yunohost app upgrade grocy -u https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
||||
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
||||
|
|
48
README_gl.md
Normal file
48
README_gl.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!--
|
||||
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||
NON debe editarse manualmente.
|
||||
-->
|
||||
|
||||
# Grocy para YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/grocy)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=grocy)
|
||||
|
||||
*[Le este README en outros idiomas.](./ALL_README.md)*
|
||||
|
||||
> *Este paquete permíteche instalar Grocy de xeito rápido e doado nun servidor YunoHost.*
|
||||
> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.*
|
||||
|
||||
## Vista xeral
|
||||
|
||||
grocy is a web-based self-hosted groceries & household management solution for your home.
|
||||
|
||||
**Versión proporcionada:** 4.2.0~ynh1
|
||||
|
||||
**Demo:** <https://en.demo.grocy.info/stockoverview>
|
||||
|
||||
## Capturas de pantalla
|
||||
|
||||

|
||||
|
||||
## Documentación e recursos
|
||||
|
||||
- Web oficial da app: <https://grocy.info/>
|
||||
- Repositorio de orixe do código: <https://github.com/grocy/grocy>
|
||||
- Tenda YunoHost: <https://apps.yunohost.org/app/grocy>
|
||||
- Informar dun problema: <https://github.com/YunoHost-Apps/grocy_ynh/issues>
|
||||
|
||||
## Info de desenvolvemento
|
||||
|
||||
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing).
|
||||
|
||||
Para probar a rama `testing`, procede deste xeito:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
ou
|
||||
sudo yunohost app upgrade grocy -u https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>
|
48
README_it.md
Normal file
48
README_it.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!--
|
||||
N.B.: Questo README è stato automaticamente generato da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||
NON DEVE essere modificato manualmente.
|
||||
-->
|
||||
|
||||
# Grocy per YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/grocy)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=grocy)
|
||||
|
||||
*[Leggi questo README in altre lingue.](./ALL_README.md)*
|
||||
|
||||
> *Questo pacchetto ti permette di installare Grocy su un server YunoHost in modo semplice e veloce.*
|
||||
> *Se non hai YunoHost, consulta [la guida](https://yunohost.org/install) per imparare a installarlo.*
|
||||
|
||||
## Panoramica
|
||||
|
||||
grocy is a web-based self-hosted groceries & household management solution for your home.
|
||||
|
||||
**Versione pubblicata:** 4.1.0~ynh1
|
||||
|
||||
**Prova:** <https://en.demo.grocy.info/stockoverview>
|
||||
|
||||
## Screenshot
|
||||
|
||||

|
||||
|
||||
## Documentazione e risorse
|
||||
|
||||
- Sito web ufficiale dell’app: <https://grocy.info/>
|
||||
- Repository upstream del codice dell’app: <https://github.com/grocy/grocy>
|
||||
- Store di YunoHost: <https://apps.yunohost.org/app/grocy>
|
||||
- Segnala un problema: <https://github.com/YunoHost-Apps/grocy_ynh/issues>
|
||||
|
||||
## Informazioni per sviluppatori
|
||||
|
||||
Si prega di inviare la tua pull request alla [branch di `testing`](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing).
|
||||
|
||||
Per provare la branch di `testing`, si prega di procedere in questo modo:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
o
|
||||
sudo yunohost app upgrade grocy -u https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Maggiori informazioni riguardo il pacchetto di quest’app:** <https://yunohost.org/packaging_apps>
|
48
README_zh_Hans.md
Normal file
48
README_zh_Hans.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!--
|
||||
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
|
||||
请勿手动编辑。
|
||||
-->
|
||||
|
||||
# YunoHost 上的 Grocy
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/grocy)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=grocy)
|
||||
|
||||
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
|
||||
|
||||
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Grocy。*
|
||||
> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。*
|
||||
|
||||
## 概况
|
||||
|
||||
grocy is a web-based self-hosted groceries & household management solution for your home.
|
||||
|
||||
**分发版本:** 4.2.0~ynh1
|
||||
|
||||
**演示:** <https://en.demo.grocy.info/stockoverview>
|
||||
|
||||
## 截图
|
||||
|
||||

|
||||
|
||||
## 文档与资源
|
||||
|
||||
- 官方应用网站: <https://grocy.info/>
|
||||
- 上游应用代码库: <https://github.com/grocy/grocy>
|
||||
- YunoHost 商店: <https://apps.yunohost.org/app/grocy>
|
||||
- 报告 bug: <https://github.com/YunoHost-Apps/grocy_ynh/issues>
|
||||
|
||||
## 开发者信息
|
||||
|
||||
请向 [`testing` 分支](https://github.com/YunoHost-Apps/grocy_ynh/tree/testing) 发送拉取请求。
|
||||
|
||||
如要尝试 `testing` 分支,请这样操作:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
或
|
||||
sudo yunohost app upgrade grocy -u https://github.com/YunoHost-Apps/grocy_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>
|
|
@ -7,7 +7,7 @@ description.fr = "Solution Web de gestion d'épicerie et de gestion de la maison
|
|||
|
||||
version = "4.2.0~ynh1"
|
||||
|
||||
maintainers = [""]
|
||||
maintainers = []
|
||||
|
||||
[upstream]
|
||||
license = "MIT"
|
||||
|
@ -20,7 +20,7 @@ yunohost = ">= 11.2"
|
|||
architectures = "all"
|
||||
multi_instance = true
|
||||
|
||||
ldap = true
|
||||
ldap = false
|
||||
|
||||
sso = false
|
||||
|
||||
|
|
|
@ -27,10 +27,6 @@ ynh_backup --src_path="$install_dir"
|
|||
|
||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -9,22 +9,6 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# MANAGE SCRIPT FAILURE
|
||||
#=================================================
|
||||
|
||||
fpm_footprint="low"
|
||||
fpm_free_footprint=0
|
||||
fpm_usage="low"
|
||||
|
||||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
#=================================================
|
||||
|
||||
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
||||
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
||||
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
@ -42,7 +26,7 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=10
|
|||
|
||||
ynh_add_nginx_config
|
||||
|
||||
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
||||
ynh_add_fpm_config
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
|
|
@ -9,46 +9,13 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
#=================================================
|
||||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
# If fpm_footprint doesn't exist, create it
|
||||
if [ -z "${fpm_footprint:-}" ]; then
|
||||
fpm_footprint=low
|
||||
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
||||
fi
|
||||
|
||||
# If fpm_free_footprint doesn't exist, create it
|
||||
if [ -z "${fpm_free_footprint:-}" ]; then
|
||||
fpm_free_footprint=0
|
||||
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
||||
fi
|
||||
|
||||
# If fpm_usage doesn't exist, create it
|
||||
if [ -z "${fpm_usage:-}" ]; then
|
||||
fpm_usage=low
|
||||
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="data"
|
||||
ynh_secure_remove --file="$install_dir/data/viewcache/*"
|
||||
fi
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="data"
|
||||
ynh_secure_remove --file="$install_dir/data/viewcache/*"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
@ -61,13 +28,13 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
|
|||
ynh_add_nginx_config
|
||||
|
||||
# Create a dedicated php-fpm config
|
||||
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
||||
ynh_add_fpm_config
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
|
||||
#ynh_add_config --template="../conf/config-dist.php" --destination="$install_dir/data/config.php"
|
||||
#ynh_add_config --template="config-dist.php" --destination="$install_dir/data/config.php"
|
||||
|
||||
#chmod 400 "$install_dir/data/config.php"
|
||||
#chown $app "$install_dir/data/config.php"
|
||||
|
|
Loading…
Add table
Reference in a new issue