1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snappymail_ynh.git synced 2024-09-03 20:26:29 +02:00

Merge pull request #156 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-05-26 17:43:25 +02:00 committed by GitHub
commit 59ecf1a40a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 61 additions and 30 deletions

View file

@ -1,6 +1,7 @@
# 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)

50
README_es.md Normal file
View file

@ -0,0 +1,50 @@
<!--
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
No se debe editar a mano.
-->
# SnappyMail para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/snappymail.svg)](https://dash.yunohost.org/appci/app/snappymail) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/snappymail.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/snappymail.maintain.svg)
[![Instalar SnappyMail con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=snappymail)
*[Leer este README en otros idiomas.](./ALL_README.md)*
> *Este paquete le permite instalarSnappyMail 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
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**Versión actual:** 2.36.1~ynh1
**Demo:** <https://snappymail.eu/demo/>
## Capturas
![Captura de SnappyMail](./doc/screenshots/screenshot.png)
## Documentaciones y recursos
- Sitio web oficial: <https://snappymail.eu/>
- Documentación administrador oficial: <https://github.com/the-djmaze/snappymail/wiki>
- Repositorio del código fuente oficial de la aplicación : <https://github.com/the-djmaze/snappymail>
- Catálogo YunoHost: <https://apps.yunohost.org/app/snappymail>
- Reportar un error: <https://github.com/YunoHost-Apps/snappymail_ynh/issues>
## Información para desarrolladores
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/snappymail_ynh/tree/testing
Para probar la rama `testing`, sigue asÍ:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/snappymail_ynh/tree/testing --debug
o
sudo yunohost app upgrade snappymail -u https://github.com/YunoHost-Apps/snappymail_ynh/tree/testing --debug
```
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>

View file

@ -3,7 +3,7 @@
请勿手动编辑。
-->
# YunoHost 的 SnappyMail
# YunoHost 的 SnappyMail
[![集成程度](https://dash.yunohost.org/integration/snappymail.svg)](https://dash.yunohost.org/appci/app/snappymail) ![工作状态](https://ci-apps.yunohost.org/ci/badges/snappymail.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/snappymail.maintain.svg)

View file

@ -46,8 +46,8 @@ ram.runtime = "50M"
[resources.sources]
[resources.sources.main]
url = "https://github.com/the-djmaze/snappymail/releases/download/v2.36.1/snappymail-2.36.1.tar.gz"
sha256 = "0e3e25ca0d33fd67f2f825161c726d48d1db8ad1662c968b95eb71ca25ddae65"
url = "https://github.com/the-djmaze/snappymail/releases/download/v2.36.2/snappymail-2.36.2.tar.gz"
sha256 = "a9e4661ca48d770d08a32ddb800ff75e7a645bacb8a310cae7b24e9c38788ff2"
in_subdir = false
autoupdate.strategy = "latest_github_release"
autoupdate.asset = "^snappymail-[0-9\\.\\-]*tar.gz$"
@ -60,7 +60,7 @@ ram.runtime = "50M"
main.url = "/"
[resources.apt]
packages = "mariadb-server, php8.2-sqlite3, php8.2-tidy, php8.2-dom, php8.2-intl, php8.2-mysql, php8.2-curl, php8.2-gd, php8.2-cli, php8.2-xml, php8.2-mbstring, php8.2-ldap"
packages = "mariadb-server, php8.3-sqlite3, php8.3-tidy, php8.3-dom, php8.3-intl, php8.3-mysql, php8.3-curl, php8.3-gd, php8.3-cli, php8.3-xml, php8.3-mbstring, php8.3-ldap"
[resources.database]
type = "mysql"

View file

@ -22,23 +22,13 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir"
#=================================================
# BACKUP THE NGINX CONFIGURATION
# SYSTEM CONFIGURATION
#=================================================
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"
#=================================================
# SPECIFIC BACKUP
#=================================================
# BACKUP LOGROTATE
#=================================================
ynh_backup --src_path="/etc/logrotate.d/$app"
#=================================================

View file

@ -23,7 +23,7 @@ chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=4
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_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$phpversion

View file

@ -9,12 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
@ -52,14 +46,10 @@ 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
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/app" --keep="data/_data_/_default_/configs/application.ini"
fi
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/app" --keep="data/_data_/_default_/configs/application.ini"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -95,7 +85,7 @@ ynh_use_logrotate --non-append
#=================================================
ynh_script_progression --message="Applying SSO patch..." --weight=1
ynh_add_config --template="../conf/sso.php" --destination="$install_dir/index.php"
ynh_add_config --template="sso.php" --destination="$install_dir/index.php"
#=================================================
# END OF SCRIPT