1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/abantecart_ynh.git synced 2024-09-03 18:06:16 +02:00

Merge pull request #42 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-06-01 19:43:09 +02:00 committed by GitHub
commit 37178f8788
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 268 additions and 112 deletions

8
ALL_README.md Normal file
View 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)

View file

@ -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. It shall NOT be edited by hand.
--> -->
@ -9,19 +9,19 @@ It shall NOT be edited by hand.
[![Install Abantecart with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart) [![Install Abantecart with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart)
*[Lire ce readme en français.](./README_fr.md)* *[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install Abantecart quickly and simply on a YunoHost server. > *This package allows you to install Abantecart 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.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
## Overview ## Overview
AbanteCart is a free open source ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set. AbanteCart is a ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set.
**Shipped version:** 1.3.4~ynh1 **Shipped version:** 1.3.4~ynh2
**Demo:** https://www.abantecart.com/shopping-cart-demo **Demo:** <https://www.abantecart.com/shopping-cart-demo>
## Screenshots ## Screenshots
@ -29,20 +29,20 @@ AbanteCart is a free open source ecommerce platform to power online retail. Aban
## Documentation and resources ## Documentation and resources
* Official app website: <https://www.abantecart.com/> - Official app website: <https://www.abantecart.com/>
* Official user documentation: <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313> - Official user documentation: <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313>
* Official admin documentation: <https://docs.abantecart.com/> - Official admin documentation: <https://docs.abantecart.com/>
* Upstream app code repository: <https://github.com/abantecart/abantecart-src> - Upstream app code repository: <https://github.com/abantecart/abantecart-src>
* YunoHost Store: <https://apps.yunohost.org/app/abantecart> - YunoHost Store: <https://apps.yunohost.org/app/abantecart>
* Report a bug: <https://github.com/YunoHost-Apps/abantecart_ynh/issues> - Report a bug: <https://github.com/YunoHost-Apps/abantecart_ynh/issues>
## Developer info ## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing). Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing).
To try the testing branch, please proceed like that. To try the `testing` branch, please proceed like that:
``` bash ```bash
sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
or or
sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug

51
README_es.md Normal file
View file

@ -0,0 +1,51 @@
<!--
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
No se debe editar a mano.
-->
# Abantecart para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/abantecart.svg)](https://dash.yunohost.org/appci/app/abantecart) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/abantecart.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/abantecart.maintain.svg)
[![Instalar Abantecart con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart)
*[Leer este README en otros idiomas.](./ALL_README.md)*
> *Este paquete le permite instalarAbantecart 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
AbanteCart is a ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set.
**Versión actual:** 1.3.4~ynh2
**Demo:** <https://www.abantecart.com/shopping-cart-demo>
## Capturas
![Captura de Abantecart](./doc/screenshots/dashboard.png)
## Documentaciones y recursos
- Sitio web oficial: <https://www.abantecart.com/>
- Documentación usuario oficial: <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313>
- Documentación administrador oficial: <https://docs.abantecart.com/>
- Repositorio del código fuente oficial de la aplicación : <https://github.com/abantecart/abantecart-src>
- Catálogo YunoHost: <https://apps.yunohost.org/app/abantecart>
- Reportar un error: <https://github.com/YunoHost-Apps/abantecart_ynh/issues>
## Información para desarrolladores
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing
Para probar la rama `testing`, sigue asÍ:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
o
sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
```
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>

51
README_eu.md Normal file
View file

@ -0,0 +1,51 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# Abantecart YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/abantecart.svg)](https://dash.yunohost.org/appci/app/abantecart) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/abantecart.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/abantecart.maintain.svg)
[![Instalatu Abantecart YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek Abantecart YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
AbanteCart is a ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set.
**Paketatutako bertsioa:** 1.3.4~ynh2
**Demoa:** <https://www.abantecart.com/shopping-cart-demo>
## Pantaila-argazkiak
![Abantecart(r)en pantaila-argazkia](./doc/screenshots/dashboard.png)
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://www.abantecart.com/>
- Erabiltzaileen dokumentazio ofiziala: <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313>
- Administratzaileen dokumentazio ofiziala: <https://docs.abantecart.com/>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/abantecart/abantecart-src>
- YunoHost Denda: <https://apps.yunohost.org/app/abantecart>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/abantecart_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
edo
sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -1,6 +1,6 @@
<!-- <!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator Nota bene: ce README est automatiquement généré par <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
It shall NOT be edited by hand. Il NE doit PAS être modifié à la main.
--> -->
# Abantecart pour YunoHost # Abantecart pour YunoHost
@ -9,19 +9,19 @@ It shall NOT be edited by hand.
[![Installer Abantecart avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart) [![Installer Abantecart avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart)
*[Read this readme in english.](./README.md)* *[Lire le README dans d'autres langues.](./ALL_README.md)*
> *Ce package vous permet dinstaller Abantecart rapidement et simplement sur un serveur YunoHost. > *Ce package vous permet dinstaller Abantecart rapidement et simplement sur un serveur YunoHost.*
Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.* > *Si vous navez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment linstaller et en profiter.*
## Vue densemble ## Vue densemble
AbanteCart is a free open source ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set. AbanteCart is a ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set.
**Version incluse :** 1.3.4~ynh1 **Version incluse:** 1.3.4~ynh2
**Démo :** https://www.abantecart.com/shopping-cart-demo **Démo:** <https://www.abantecart.com/shopping-cart-demo>
## Captures décran ## Captures décran
@ -29,23 +29,23 @@ AbanteCart is a free open source ecommerce platform to power online retail. Aban
## Documentations et ressources ## Documentations et ressources
* Site officiel de lapp : <https://www.abantecart.com/> - Site officiel de lapp: <https://www.abantecart.com/>
* Documentation officielle utilisateur : <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313> - Documentation officielle utilisateur: <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313>
* Documentation officielle de ladmin : <https://docs.abantecart.com/> - Documentation officielle de ladmin: <https://docs.abantecart.com/>
* Dépôt de code officiel de lapp : <https://github.com/abantecart/abantecart-src> - Dépôt de code officiel de lapp: <https://github.com/abantecart/abantecart-src>
* YunoHost Store: <https://apps.yunohost.org/app/abantecart> - YunoHost Store: <https://apps.yunohost.org/app/abantecart>
* Signaler un bug : <https://github.com/YunoHost-Apps/abantecart_ynh/issues> - Signaler un bug: <https://github.com/YunoHost-Apps/abantecart_ynh/issues>
## Informations pour les développeurs ## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing). Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit. Pour essayer la branche `testing`, procédez comme suit:
``` bash ```bash
sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
ou ou
sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
``` ```
**Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps> **Plus dinfos sur le packaging dapplications:** <https://yunohost.org/packaging_apps>

51
README_gl.md Normal file
View file

@ -0,0 +1,51 @@
<!--
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
NON debe editarse manualmente.
-->
# Abantecart para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/abantecart.svg)](https://dash.yunohost.org/appci/app/abantecart) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/abantecart.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/abantecart.maintain.svg)
[![Instalar Abantecart con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart)
*[Le este README en outros idiomas.](./ALL_README.md)*
> *Este paquete permíteche instalar Abantecart 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
AbanteCart is a ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set.
**Versión proporcionada:** 1.3.4~ynh2
**Demo:** <https://www.abantecart.com/shopping-cart-demo>
## Capturas de pantalla
![Captura de pantalla de Abantecart](./doc/screenshots/dashboard.png)
## Documentación e recursos
- Web oficial da app: <https://www.abantecart.com/>
- Documentación oficial para usuarias: <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313>
- Documentación oficial para admin: <https://docs.abantecart.com/>
- Repositorio de orixe do código: <https://github.com/abantecart/abantecart-src>
- Tenda YunoHost: <https://apps.yunohost.org/app/abantecart>
- Informar dun problema: <https://github.com/YunoHost-Apps/abantecart_ynh/issues>
## Info de desenvolvemento
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing).
Para probar a rama `testing`, procede deste xeito:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
ou
sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
```
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>

51
README_zh_Hans.md Normal file
View file

@ -0,0 +1,51 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 上的 Abantecart
[![集成程度](https://dash.yunohost.org/integration/abantecart.svg)](https://dash.yunohost.org/appci/app/abantecart) ![工作状态](https://ci-apps.yunohost.org/ci/badges/abantecart.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/abantecart.maintain.svg)
[![使用 YunoHost 安装 Abantecart](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=abantecart)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Abantecart。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
AbanteCart is a ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set.
**分发版本:** 1.3.4~ynh2
**演示:** <https://www.abantecart.com/shopping-cart-demo>
## 截图
![Abantecart 的截图](./doc/screenshots/dashboard.png)
## 文档与资源
- 官方应用网站: <https://www.abantecart.com/>
- 官方用户文档: <https://abantecart.atlassian.net/wiki/spaces/AD/overview?homepageId=3506313>
- 官方管理文档: <https://docs.abantecart.com/>
- 上游应用代码库: <https://github.com/abantecart/abantecart-src>
- YunoHost 商店: <https://apps.yunohost.org/app/abantecart>
- 报告 bug <https://github.com/YunoHost-Apps/abantecart_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
sudo yunohost app upgrade abantecart -u https://github.com/YunoHost-Apps/abantecart_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

View file

@ -1,4 +1,4 @@
### Important points to read before installing ### Important points to read before installing
- Do not upgrade manually within the app, upgrade with Yunohost instead! - Do not upgrade manually within the app, upgrade with YunoHost instead!
- Admin interface will be available at https://domain.tld/?s=admin - Admin interface will be available at https://__DOMAIN__/?s=admin

View file

@ -1 +1 @@
AbanteCart is a free open source ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set. AbanteCart is a ecommerce platform to power online retail. AbanteCart is a ready to run web application as well as reliable foundation to build custom eCommerce solutions. AbanteCart ecommerce platform is designed to fit a wide variety of online businesses and applications, as well as can be configured or customized to perform very specific business requirements. Chosen by many shop owners launching their business online for the first time, AbanteCart is also picked by developers looking for a user-friendly interface and powerful features set.

View file

@ -5,7 +5,7 @@ name = "Abantecart"
description.en = "Open source ecommerce platform to power online retail" description.en = "Open source ecommerce platform to power online retail"
description.fr = "Plateforme de commerce électronique pour la vente au détail en ligne" description.fr = "Plateforme de commerce électronique pour la vente au détail en ligne"
version = "1.3.4~ynh1" version = "1.3.4~ynh2"
maintainers = [] maintainers = []
@ -56,7 +56,7 @@ ram.runtime = "50M"
main.url = "/" main.url = "/"
[resources.apt] [resources.apt]
packages = "mariadb-server php8.2-iconv php8.2-mbstring php8.2-mysqli php8.2-zip php8.2-curl php8.2-gd php8.2-soap php8.2-xml libwebp-dev libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev libxpm-dev libonig-dev libzip-dev mc net-tools libxml2-dev" packages = "mariadb-server, php8.2-iconv, php8.2-mbstring, php8.2-mysqli, php8.2-zip, php8.2-curl, php8.2-gd, php8.2-soap, php8.2-xml, libwebp-dev, libfreetype6-dev, libjpeg62-turbo-dev, libmcrypt-dev, libpng-dev, libxpm-dev, libonig-dev, libzip-dev, mc, net-tools, libxml2-dev"
[resources.database] [resources.database]
type = "mysql" type = "mysql"

View file

@ -22,15 +22,11 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir" ynh_backup --src_path="$install_dir"
#================================================= #=================================================
# BACKUP THE NGINX CONFIGURATION # SYSTEM CONFIGURATION
#================================================= #=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" 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" ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#================================================= #=================================================

View file

@ -13,10 +13,6 @@ source /usr/share/yunohost/helpers
# RETRIEVE ARGUMENTS FROM THE MANIFEST # RETRIEVE ARGUMENTS FROM THE MANIFEST
#================================================= #=================================================
fpm_footprint="low"
fpm_free_footprint=0
fpm_usage="low"
email=$(ynh_user_get_info --username=$admin --key=mail) email=$(ynh_user_get_info --username=$admin --key=mail)
src_version=$(ynh_app_upstream_version) src_version=$(ynh_app_upstream_version)
@ -25,9 +21,6 @@ src_version=$(ynh_app_upstream_version)
#================================================= #=================================================
ynh_app_setting_set --app=$app --key=src_version --value=$src_version ynh_app_setting_set --app=$app --key=src_version --value=$src_version
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 # DOWNLOAD, CHECK AND UNPACK SOURCE
@ -49,12 +42,7 @@ find $install_dir/www -type f -exec chmod 644 {} \;
ynh_script_progression --message="Configuring PHP-FPM..." --weight=2 ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint ynh_add_fpm_config
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config

View file

@ -22,20 +22,6 @@ chown -R $app:www-data "$install_dir"
find $install_dir/www -type d -exec chmod 755 {} \; find $install_dir/www -type d -exec chmod 755 {} \;
find $install_dir/www -type f -exec chmod 644 {} \; find $install_dir/www -type f -exec chmod 644 {} \;
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=2
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# RESTORE THE MYSQL DATABASE # RESTORE THE MYSQL DATABASE
#================================================= #=================================================
@ -43,6 +29,15 @@ ynh_script_progression --message="Restoring the MySQL database..." --weight=1
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# RESTORE SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -9,48 +9,13 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
# 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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
ynh_script_progression --message="Upgrading source files..." --weight=1
if [ "$upgrade_type" == "UPGRADE_APP" ] # Download, check integrity, uncompress and patch the source from app.src
then ynh_setup_source --dest_dir="$install_dir/git_src"
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/git_src"
fi
ynh_secure_remove $install_dir/www/install ynh_secure_remove $install_dir/www/install
@ -63,12 +28,12 @@ find $install_dir/www -type f -exec chmod 644 {} \;
ln -s $install_dir/git_src/public_html $install_dir/www ln -s $install_dir/git_src/public_html $install_dir/www
#================================================= #=================================================
# PHP-FPM CONFIGURATION # UPDATE A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 ynh_script_progression --message="Updating $app's configuration files..." --weight=1
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint ynh_add_fpm_config
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config