1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/joomla_ynh.git synced 2024-09-03 19:26:34 +02:00

Merge pull request #43 from YunoHost-Apps/testing

Update _common.sh: cleanup, smart_mktemp ain't used anywhere?
This commit is contained in:
Alexandre Aubin 2024-05-19 13:25:29 +02:00 committed by GitHub
commit bc09e06659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 60 additions and 59 deletions

View file

@ -1,6 +1,7 @@
# All available README files by language
- [Read the README in English](README.md)
- [Lee 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)

View file

@ -27,7 +27,7 @@ Joomla! is a free and open-source content management system (CMS) for publishing
## :red_circle: Antifeatures
- **Package not maintained**: This YunoHost package is not maintained and needs adoption.
- **Package not maintained**: This YunoHost package is not actively maintained and needs adoption. This means that minimal maintenance is made by volunteers who don't use the app, so you should expect the app to lose reliability over time. You can [learn how to package](https://yunohost.org/packaging_apps_intro) if you'd like to adopt it.
## Documentation and resources

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.
-->
# Joomla para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/joomla.svg)](https://dash.yunohost.org/appci/app/joomla) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/joomla.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/joomla.maintain.svg)
[![Instalar Joomla con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=joomla)
*[Leer este README en otros idiomas.](./ALL_README.md)*
> *Este paquete le permite instalarJoomla 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
Joomla! is a free and open-source content management system (CMS) for publishing web content. Over the years Joomla! has won several awards. It is built on a modelviewcontroller web application framework that can be used independently of the CMS that allows you to build powerful online applications.
**Versión actual:** 5.1.0~ynh1
## Capturas
![Captura de Joomla](./doc/screenshots/screenshot.jpg)
## :red_circle: funcionalidades no deseadas
- **Package not maintained**: This YunoHost package is not actively maintained and needs adoption. This means that minimal maintenance is made by volunteers who don't use the app, so you should expect the app to lose reliability over time. You can [learn how to package](https://yunohost.org/packaging_apps_intro) if you'd like to adopt it.
## Documentaciones y recursos
- Sitio web oficial: <https://www.joomla.org/>
- Documentación administrador oficial: <https://docs.joomla.org/>
- Repositorio del código fuente oficial de la aplicación : <https://github.com/joomla/joomla-cms>
- Catálogo YunoHost: <https://apps.yunohost.org/app/joomla>
- Reportar un error: <https://github.com/YunoHost-Apps/joomla_ynh/issues>
## Información para desarrolladores
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/joomla_ynh/tree/testing
Para probar la rama `testing`, sigue asÍ:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/joomla_ynh/tree/testing --debug
o
sudo yunohost app upgrade joomla -u https://github.com/YunoHost-Apps/joomla_ynh/tree/testing --debug
```
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>

View file

@ -27,7 +27,7 @@ Joomla! is a free and open-source content management system (CMS) for publishing
## :red_circle: Ezaugarri zalantzagarriak
- **Mantendu gabeko paketea**: Pakete honek ez du mantenduko duenik, boluntario baten beharra dauka.
- **Mantendu gabeko paketea**: YunoHost pakete honek ez du mantenduko duenik, bere gain hartuko duen norbaiten beharra dauka. Honek esan nahi duena da mantentze-lanak minimoak izango direla eta aplikazioa erabiltzen ez duten boluntarioek egingo dituztela lanok; denborak aurrera egin ahala fidagarri izateari utziko dio. [Aplikazioak nola paketatu](https://yunohost.org/packaging_apps_intro) ikas dezakezu, zure gain hartu nahi baduzu.
## Dokumentazioa eta baliabideak

View file

@ -27,7 +27,7 @@ Joomla! est un système de gestion de contenu (CMS) gratuit et open source pour
## :red_circle: Anti-fonctionnalités
- **Paquet non maintenu **: Ce package YunoHost n'est plus maintenu et doit être adopté.
- **Package non maintenu **: Ce package YunoHost n'est pas activement maintenu et a besoin d'être adopté. Cela veut dire que la maintenance minimale est réalisée par des bénévoles qui n'utilisent pas l'application, il faut donc s'attendre à ce que l'app perde en fiabilité avec le temps. Vous pouvez [apprendre comment packager](https://yunohost.org/packaging_apps_intro) si vous voulez l'adopter.
## Documentations et ressources

View file

@ -25,9 +25,9 @@ Joomla! is a free and open-source content management system (CMS) for publishing
![Captura de pantalla de Joomla](./doc/screenshots/screenshot.jpg)
## :red_circle: Caraterísticas cuestionables
## :red_circle: Debes considerar
- **Package not maintained**: This YunoHost package is not maintained and needs adoption.
- **Package not maintained**: This YunoHost package is not actively maintained and needs adoption. This means that minimal maintenance is made by volunteers who don't use the app, so you should expect the app to lose reliability over time. You can [learn how to package](https://yunohost.org/packaging_apps_intro) if you'd like to adopt it.
## Documentación e recursos

View file

@ -3,7 +3,7 @@
请勿手动编辑。
-->
# YunoHost 的 Joomla
# YunoHost 的 Joomla
[![集成程度](https://dash.yunohost.org/integration/joomla.svg)](https://dash.yunohost.org/appci/app/joomla) ![工作状态](https://ci-apps.yunohost.org/ci/badges/joomla.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/joomla.maintain.svg)
@ -27,7 +27,7 @@ Joomla! is a free and open-source content management system (CMS) for publishing
## :red_circle: 负面特征
- **Package not maintained**: This YunoHost package is not maintained and needs adoption.
- **Package not maintained**: This YunoHost package is not actively maintained and needs adoption. This means that minimal maintenance is made by volunteers who don't use the app, so you should expect the app to lose reliability over time. You can [learn how to package](https://yunohost.org/packaging_apps_intro) if you'd like to adopt it.
## 文档与资源

View file

@ -1,54 +1,2 @@
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
# Check available space before creating a temp directory.
#
# usage: ynh_smart_mktemp --min_size="Min size"
#
# | arg: -s, --min_size= - Minimal size needed for the temporary directory, in Mb
ynh_smart_mktemp () {
# Declare an array to define the options of this helper.
declare -Ar args_array=( [s]=min_size= )
local min_size
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
min_size="${min_size:-300}"
# Transform the minimum size from megabytes to kilobytes
min_size=$(( $min_size * 1024 ))
# Check if there's enough free space in a directory
is_there_enough_space () {
local free_space=$(df --output=avail "$1" | sed 1d)
test $free_space -ge $min_size
}
if is_there_enough_space /tmp; then
local tmpdir=/tmp
elif is_there_enough_space /var; then
local tmpdir=/var
elif is_there_enough_space /; then
local tmpdir=/
elif is_there_enough_space /home; then
local tmpdir=/home
else
ynh_die "Insufficient free space to continue..."
fi
echo "$(mktemp --directory --tmpdir="$tmpdir")"
}
#=================================================
# PERSONAL HELPERS
#=================================================
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================