1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adminer_ynh.git synced 2024-09-03 18:06:06 +02:00
* 4.8.1 (#15)

* 4.8.1

* Add template

* Auto-update README

* Only admin (#17)

* Fix

* Update install

* Fix

* fix

* Update install

* Fix

* Update upgrade

* fix

* Update upgrade

* Update upgrade

* Update upgrade

* Update upgrade

* cleaning up

* Update upgrade

* Update check_process

* 4.3

* Update upgrade

* Update upgrade

* cleaning up

* Bump manifest version

* Auto-update README

* Add config

* Auto-update README

* Update manifest.json

* Auto-update README

* Auto-update README

* Upgrade package (#21)

* set client_max_body_size

* Auto-update README

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Version 2 (#23)

* v2

* Auto-update README

* v2

* Auto-update README

* Update tests.toml

* Update manifest.toml

* fix

* Update manifest.toml

* Auto-update README

* Update upgrade

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Update manifest.toml

* Auto-update README

* cleaning

* Auto-update READMEs

* cleaning

* Update manifest.toml

* Auto-update READMEs

* fix

---------

Co-authored-by: Yunohost-Bot <>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
eric_G 2024-06-02 12:22:25 +02:00 committed by GitHub
parent 436e43a297
commit 9121082929
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 268 additions and 94 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,37 +9,41 @@ It shall NOT be edited by hand.
[![Install Adminer with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer) [![Install Adminer with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[Lire ce readme en français.](./README_fr.md)* *[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install Adminer quickly and simply on a YunoHost server. > *This package allows you to install Adminer 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
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin. Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin.
**Shipped version:** 4.8.1~ynh6 **Shipped version:** 4.8.1~ynh7
**Demo:** https://demo.adminer.org/adminer.php?username= **Demo:** <https://demo.adminer.org/adminer.php?username=>
## Screenshots ## Screenshots
![Screenshot of Adminer](./doc/screenshots/screenshot.png) ![Screenshot of Adminer](./doc/screenshots/screenshot.png)
## :red_circle: Antifeatures
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## Documentation and resources ## Documentation and resources
* Official app website: <https://www.adminer.org/> - Official app website: <https://www.adminer.org/>
* Upstream app code repository: <https://github.com/vrana/adminer/> - Upstream app code repository: <https://github.com/vrana/adminer/>
* YunoHost Store: <https://apps.yunohost.org/app/adminer> - YunoHost Store: <https://apps.yunohost.org/app/adminer>
* Report a bug: <https://github.com/YunoHost-Apps/adminer_ynh/issues> - Report a bug: <https://github.com/YunoHost-Apps/adminer_ynh/issues>
## Developer info ## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/adminer_ynh/tree/testing). Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/adminer_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/adminer_ynh/tree/testing --debug sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
or or
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug

52
README_es.md Normal file
View file

@ -0,0 +1,52 @@
<!--
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
No se debe editar a mano.
-->
# Adminer para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/adminer.svg)](https://dash.yunohost.org/appci/app/adminer) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/adminer.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/adminer.maintain.svg)
[![Instalar Adminer con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[Leer este README en otros idiomas.](./ALL_README.md)*
> *Este paquete le permite instalarAdminer 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
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin.
**Versión actual:** 4.8.1~ynh7
**Demo:** <https://demo.adminer.org/adminer.php?username=>
## Capturas
![Captura de Adminer](./doc/screenshots/screenshot.png)
## :red_circle: funcionalidades no deseadas
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## Documentaciones y recursos
- Sitio web oficial: <https://www.adminer.org/>
- Repositorio del código fuente oficial de la aplicación : <https://github.com/vrana/adminer/>
- Catálogo YunoHost: <https://apps.yunohost.org/app/adminer>
- Reportar un error: <https://github.com/YunoHost-Apps/adminer_ynh/issues>
## Información para desarrolladores
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/adminer_ynh/tree/testing
Para probar la rama `testing`, sigue asÍ:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
o
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
```
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>

52
README_eu.md Normal file
View file

@ -0,0 +1,52 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# Adminer YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/adminer.svg)](https://dash.yunohost.org/appci/app/adminer) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/adminer.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/adminer.maintain.svg)
[![Instalatu Adminer YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek Adminer YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin.
**Paketatutako bertsioa:** 4.8.1~ynh7
**Demoa:** <https://demo.adminer.org/adminer.php?username=>
## Pantaila-argazkiak
![Adminer(r)en pantaila-argazkia](./doc/screenshots/screenshot.png)
## :red_circle: Ezaugarri zalantzagarriak
- **Jatorrizko garapena utzita**: Software honek ez du arduradunik. Denborak aurrera egin ahala funtzionatzeari utziko dio, konpondu gabeko segurtasun arazoak izango ditu, etab.
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://www.adminer.org/>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/vrana/adminer/>
- YunoHost Denda: <https://apps.yunohost.org/app/adminer>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/adminer_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/adminer_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
edo
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_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.
--> -->
# Adminer pour YunoHost # Adminer pour YunoHost
@ -9,40 +9,44 @@ It shall NOT be edited by hand.
[![Installer Adminer avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer) [![Installer Adminer avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[Read this readme in english.](./README.md)* *[Lire le README dans d'autres langues.](./ALL_README.md)*
> *Ce package vous permet dinstaller Adminer rapidement et simplement sur un serveur YunoHost. > *Ce package vous permet dinstaller Adminer 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
Adminer (anciennement phpMinAdmin) est un outil de gestion de base de données complet écrit en PHP. À l'inverse de phpMyAdmin, il se compose d'un seul fichier prêt à être déployé sur le serveur cible. Adminer est disponible pour MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB et autres via un plugin. Adminer (anciennement phpMinAdmin) est un outil de gestion de base de données complet écrit en PHP. À l'inverse de phpMyAdmin, il se compose d'un seul fichier prêt à être déployé sur le serveur cible. Adminer est disponible pour MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB et autres via un plugin.
**Version incluse :** 4.8.1~ynh6 **Version incluse:** 4.8.1~ynh7
**Démo :** https://demo.adminer.org/adminer.php?username= **Démo:** <https://demo.adminer.org/adminer.php?username=>
## Captures décran ## Captures décran
![Capture décran de Adminer](./doc/screenshots/screenshot.png) ![Capture décran de Adminer](./doc/screenshots/screenshot.png)
## :red_circle: Anti-fonctionnalités
- **Application non maintenue **: Ce logiciel n'est plus maintenu. Attendez-vous à ce qu'il ne fonctionne plus avec le temps, et que l'on découvre des failles de sécurité qui ne seront pas corrigées, etc.
## Documentations et ressources ## Documentations et ressources
* Site officiel de lapp : <https://www.adminer.org/> - Site officiel de lapp: <https://www.adminer.org/>
* Dépôt de code officiel de lapp : <https://github.com/vrana/adminer/> - Dépôt de code officiel de lapp: <https://github.com/vrana/adminer/>
* YunoHost Store: <https://apps.yunohost.org/app/adminer> - YunoHost Store: <https://apps.yunohost.org/app/adminer>
* Signaler un bug : <https://github.com/YunoHost-Apps/adminer_ynh/issues> - Signaler un bug: <https://github.com/YunoHost-Apps/adminer_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/adminer_ynh/tree/testing). Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/adminer_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/adminer_ynh/tree/testing --debug sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
ou ou
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_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>

52
README_gl.md Normal file
View file

@ -0,0 +1,52 @@
<!--
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
NON debe editarse manualmente.
-->
# Adminer para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/adminer.svg)](https://dash.yunohost.org/appci/app/adminer) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/adminer.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/adminer.maintain.svg)
[![Instalar Adminer con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[Le este README en outros idiomas.](./ALL_README.md)*
> *Este paquete permíteche instalar Adminer 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
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin.
**Versión proporcionada:** 4.8.1~ynh7
**Demo:** <https://demo.adminer.org/adminer.php?username=>
## Capturas de pantalla
![Captura de pantalla de Adminer](./doc/screenshots/screenshot.png)
## :red_circle: Debes considerar
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## Documentación e recursos
- Web oficial da app: <https://www.adminer.org/>
- Repositorio de orixe do código: <https://github.com/vrana/adminer/>
- Tenda YunoHost: <https://apps.yunohost.org/app/adminer>
- Informar dun problema: <https://github.com/YunoHost-Apps/adminer_ynh/issues>
## Info de desenvolvemento
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/adminer_ynh/tree/testing).
Para probar a rama `testing`, procede deste xeito:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
ou
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
```
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>

52
README_zh_Hans.md Normal file
View file

@ -0,0 +1,52 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 上的 Adminer
[![集成程度](https://dash.yunohost.org/integration/adminer.svg)](https://dash.yunohost.org/appci/app/adminer) ![工作状态](https://ci-apps.yunohost.org/ci/badges/adminer.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/adminer.maintain.svg)
[![使用 YunoHost 安装 Adminer](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=adminer)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Adminer。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others via plugin.
**分发版本:** 4.8.1~ynh7
**演示:** <https://demo.adminer.org/adminer.php?username=>
## 截图
![Adminer 的截图](./doc/screenshots/screenshot.png)
## :red_circle: 负面特征
- **Upstream not maintained**: This software is not maintained anymore. Expect it to break down over time, be exposed to unfixed security breaches, etc.
## 文档与资源
- 官方应用网站: <https://www.adminer.org/>
- 上游应用代码库: <https://github.com/vrana/adminer/>
- YunoHost 商店: <https://apps.yunohost.org/app/adminer>
- 报告 bug <https://github.com/YunoHost-Apps/adminer_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/adminer_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
sudo yunohost app upgrade adminer -u https://github.com/YunoHost-Apps/adminer_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

View file

@ -5,9 +5,9 @@ name = "Adminer"
description.en = "Database management tool" description.en = "Database management tool"
description.fr = "Gestionnaire de base de données" description.fr = "Gestionnaire de base de données"
version = "4.8.1~ynh6" version = "4.8.1~ynh7"
maintainers = [ ] maintainers = []
[upstream] [upstream]
license = "Apache-2.0" license = "Apache-2.0"
@ -19,8 +19,11 @@ code = "https://github.com/vrana/adminer/"
yunohost = ">= 11.2" yunohost = ">= 11.2"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = false ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "100M" ram.build = "100M"
ram.runtime = "50M" ram.runtime = "50M"
@ -49,4 +52,4 @@ ram.runtime = "50M"
main.url = "/" main.url = "/"
[resources.apt] [resources.apt]
packages = "php8.2-mysql php8.2-sqlite3 php8.2-pgsql" packages = "php8.2-mysql, php8.2-sqlite3, php8.2-pgsql"

View file

@ -24,15 +24,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

@ -9,22 +9,6 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
@ -46,7 +30,7 @@ chown -R $app:www-data "$install_dir"
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1 ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
# 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
# Create a dedicated nginx config # Create a dedicated nginx config
ynh_add_nginx_config ynh_add_nginx_config

View file

@ -21,9 +21,9 @@ chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE SYSTEM CONFIGURATIONS
#================================================= #=================================================
ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=5 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/php/$phpversion/fpm/pool.d/$app.conf"

View file

@ -9,49 +9,16 @@
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)
#=================================================
# 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
#================================================= #=================================================
# Copy source files
ynh_secure_remove $install_dir
if [ "$upgrade_type" == "UPGRADE_APP" ] mkdir -p $install_dir
then
# Copy source files
ynh_secure_remove $install_dir
mkdir -p $install_dir #copy files from with_root_access folder to the install_dir
cp -a ../sources/with_root_access/. $install_dir
#copy files from with_root_access folder to the install_dir
cp -a ../sources/with_root_access/. $install_dir
fi
chmod 750 "$install_dir" chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
@ -63,7 +30,7 @@ chown -R $app:www-data "$install_dir"
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 ynh_script_progression --message="Upgrading PHP-FPM configuration..." --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