1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

Merge pull request #98 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-08-11 15:17:38 +02:00 committed by GitHub
commit f009657c5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 85 additions and 67 deletions

View file

@ -5,4 +5,5 @@
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)
- [Baca README dalam bahasa bahasa Indonesia](README_id.md)
- [阅读中文(简体)的 README](README_zh_Hans.md)

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# Z-Push for YunoHost
[![Integration level](https://dash.yunohost.org/integration/z-push.svg)](https://dash.yunohost.org/appci/app/z-push) ![Working status](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Integration level](https://dash.yunohost.org/integration/z-push.svg)](https://ci-apps.yunohost.org/ci/apps/z-push/) ![Working status](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Install Z-Push with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=z-push)
@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Z-Push is an Exchange ActiveSync fronted written in PHP which lets you synchronize emails (IMAP/SMTP backend) and calendar/contacts (cardDAV and caldDAV backend)
**Shipped version:** 2.7.3~ynh1
**Shipped version:** 2.7.4~ynh1
## Documentation and resources
- Official app website: <http://z-push.org>

View file

@ -5,7 +5,7 @@ No se debe editar a mano.
# Z-Push para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/z-push.svg)](https://dash.yunohost.org/appci/app/z-push) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/z-push.svg)](https://ci-apps.yunohost.org/ci/apps/z-push/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Instalar Z-Push con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=z-push)
@ -19,7 +19,7 @@ No se debe editar a mano.
Z-Push is an Exchange ActiveSync fronted written in PHP which lets you synchronize emails (IMAP/SMTP backend) and calendar/contacts (cardDAV and caldDAV backend)
**Versión actual:** 2.7.3~ynh1
**Versión actual:** 2.7.4~ynh1
## Documentaciones y recursos
- Sitio web oficial: <http://z-push.org>

View file

@ -5,7 +5,7 @@ EZ editatu eskuz.
# Z-Push YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/z-push.svg)](https://dash.yunohost.org/appci/app/z-push) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Integrazio maila](https://dash.yunohost.org/integration/z-push.svg)](https://ci-apps.yunohost.org/ci/apps/z-push/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Instalatu Z-Push YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=z-push)
@ -19,7 +19,7 @@ EZ editatu eskuz.
Z-Push is an Exchange ActiveSync fronted written in PHP which lets you synchronize emails (IMAP/SMTP backend) and calendar/contacts (cardDAV and caldDAV backend)
**Paketatutako bertsioa:** 2.7.3~ynh1
**Paketatutako bertsioa:** 2.7.4~ynh1
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <http://z-push.org>

View file

@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
# Z-Push pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/z-push.svg)](https://dash.yunohost.org/appci/app/z-push) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Niveau dintégration](https://dash.yunohost.org/integration/z-push.svg)](https://ci-apps.yunohost.org/ci/apps/z-push/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Installer Z-Push avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=z-push)
@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Z-Push is an Exchange ActiveSync fronted written in PHP which lets you synchronize emails (IMAP/SMTP backend) and calendar/contacts (cardDAV and caldDAV backend)
**Version incluse:** 2.7.3~ynh1
**Version incluse:** 2.7.4~ynh1
## Documentations et ressources
- Site officiel de lapp: <http://z-push.org>

View file

@ -5,7 +5,7 @@ NON debe editarse manualmente.
# Z-Push para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/z-push.svg)](https://dash.yunohost.org/appci/app/z-push) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/z-push.svg)](https://ci-apps.yunohost.org/ci/apps/z-push/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Instalar Z-Push con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=z-push)
@ -19,7 +19,7 @@ NON debe editarse manualmente.
Z-Push is an Exchange ActiveSync fronted written in PHP which lets you synchronize emails (IMAP/SMTP backend) and calendar/contacts (cardDAV and caldDAV backend)
**Versión proporcionada:** 2.7.3~ynh1
**Versión proporcionada:** 2.7.4~ynh1
## Documentación e recursos
- Web oficial da app: <http://z-push.org>

43
README_id.md Normal file
View file

@ -0,0 +1,43 @@
<!--
N.B.: README ini dibuat secara otomatis oleh <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
Ini TIDAK boleh diedit dengan tangan.
-->
# Z-Push untuk YunoHost
[![Tingkat integrasi](https://dash.yunohost.org/integration/z-push.svg)](https://ci-apps.yunohost.org/ci/apps/z-push/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![Pasang Z-Push dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=z-push)
*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)*
> *Paket ini memperbolehkan Anda untuk memasang Z-Push secara cepat dan mudah pada server YunoHost.*
> *Bila Anda tidak mempunyai YunoHost, silakan berkonsultasi dengan [panduan](https://yunohost.org/install) untuk mempelajari bagaimana untuk memasangnya.*
## Ringkasan
Z-Push is an Exchange ActiveSync fronted written in PHP which lets you synchronize emails (IMAP/SMTP backend) and calendar/contacts (cardDAV and caldDAV backend)
**Versi terkirim:** 2.7.4~ynh1
## Dokumentasi dan sumber daya
- Website aplikasi resmi: <http://z-push.org>
- Dokumentasi admin resmi: <https://wiki.z-hub.io/display/ZP/Documentation>
- Depot kode aplikasi hulu: <https://github.com/Z-Hub/Z-Push>
- Gudang YunoHost: <https://apps.yunohost.org/app/z-push>
- Laporkan bug: <https://github.com/YunoHost-Apps/z-push_ynh/issues>
## Info developer
Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/z-push_ynh/tree/testing).
Untuk mencoba branch `testing`, silakan dilanjutkan seperti:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/z-push_ynh/tree/testing --debug
atau
sudo yunohost app upgrade z-push -u https://github.com/YunoHost-Apps/z-push_ynh/tree/testing --debug
```
**Info lebih lanjut mengenai pemaketan aplikasi:** <https://yunohost.org/packaging_apps>

View file

@ -5,7 +5,7 @@
# YunoHost 上的 Z-Push
[![集成程度](https://dash.yunohost.org/integration/z-push.svg)](https://dash.yunohost.org/appci/app/z-push) ![工作状态](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![集成程度](https://dash.yunohost.org/integration/z-push.svg)](https://ci-apps.yunohost.org/ci/apps/z-push/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/z-push.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/z-push.maintain.svg)
[![使用 YunoHost 安装 Z-Push](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=z-push)
@ -19,7 +19,7 @@
Z-Push is an Exchange ActiveSync fronted written in PHP which lets you synchronize emails (IMAP/SMTP backend) and calendar/contacts (cardDAV and caldDAV backend)
**分发版本:** 2.7.3~ynh1
**分发版本:** 2.7.4~ynh1
## 文档与资源
- 官方应用网站: <http://z-push.org>

View file

@ -87,7 +87,7 @@
define('LOGBACKEND', 'filelog');
define('LOGFILEDIR', '__LOG_DIR__/');
define('LOGFILEDIR', '/var/log/__APP__/');
define('LOGFILE', LOGFILEDIR . 'autodiscover.log');
define('LOGERRORFILE', LOGFILEDIR . 'autodiscover-error.log');
define('LOGLEVEL', LOGLEVEL_ERROR);

View file

@ -120,7 +120,7 @@
$specialLogUsers = array();
// Filelog settings
define('LOGFILEDIR', '__LOG_DIR__');
define('LOGFILEDIR', '/var/log/__APP__/');
define('LOGFILE', LOGFILEDIR . 'z-push.log');
define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log');

View file

@ -5,7 +5,7 @@ name = "Z-Push"
description.en = "ActiveSync frontend that helps you synchronize emails, calendar and contacts"
description.fr = "Frontend ActiveSync qui permet de synchroniser emails, calendrier et contacts"
version = "2.7.3~ynh1"
version = "2.7.4~ynh1"
maintainers = ["yalh76"]
@ -16,7 +16,7 @@ admindoc = "https://wiki.z-hub.io/display/ZP/Documentation"
code = "https://github.com/Z-Hub/Z-Push"
[integration]
yunohost = ">= 11.2"
yunohost = ">= 11.2.20"
architectures = "all"
multi_instance = true
@ -35,8 +35,8 @@ ram.runtime = "50M"
[resources]
[resources.sources.main]
url = "https://github.com/Z-Hub/Z-Push/archive/refs/tags/2.7.3.tar.gz"
sha256 = "89a052dd585b2858c499bea2514ce360f510a6ede469216f4498c050d7a420fa"
url = "https://github.com/Z-Hub/Z-Push/archive/refs/tags/2.7.4.tar.gz"
sha256 = "cba777846dae95993b0d90007a606d4a5f39d605ac4ab2cd0a432171eb355d48"
autoupdate.strategy = "latest_github_release"
[resources.system_user]
@ -47,21 +47,18 @@ ram.runtime = "50M"
[resources.permissions]
main.url = "/"
main.allowed = "visitors" # should it always be public ?
# FIXME: watdo with this ...
#REMOVEME? ynh_permission_create --permission="autodiscover" --url="re:$domain_regex/[Aa]uto[Dd]iscover/.*" --allowed="visitors" --show_tile="false" --protected="true"
main.allowed = "visitors"
[resources.apt]
packages = [
"php7.4-soap",
"php7.4-imap",
"php7.4-xsl",
"php7.4-curl",
"php7.4-xml",
"php7.4-ldap",
"php7.4-cli",
"php7.4-mbstring",
"php7.4-memcached",
"php8.3-soap",
"php8.3-imap",
"php8.3-xsl",
"php8.3-curl",
"php8.3-xml",
"php8.3-ldap",
"php8.3-cli",
"php8.3-mbstring",
"php8.3-memcached",
"libawl-php",
]

View file

@ -28,23 +28,13 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="$data_dir" --is_big
#=================================================
# 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

@ -15,7 +15,6 @@ source /usr/share/yunohost/helpers
path="/Microsoft-Server-ActiveSync"
timezone="$(cat /etc/timezone)"
log_dir="/var/log/$app/"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -42,10 +41,10 @@ ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
mkdir -p $log_dir
chmod 750 "$log_dir"
chmod -R o-rwx "$log_dir"
chown -R $app:www-data "$log_dir"
mkdir -p "/var/log/$app/"
chmod 750 "/var/log/$app/"
chmod -R o-rwx "/var/log/$app/"
chown -R $app:www-data "/var/log/$app/"
ynh_use_logrotate
@ -119,7 +118,6 @@ ynh_add_config --template="backend/config-searchldap.php" --destination="$instal
#Copy XMLElement.php
ln -s /usr/share/awl/inc/XML* /var/www/$app/include/
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -25,8 +25,6 @@ ynh_remove_nginx_config
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
ynh_secure_remove --file="$log_dir"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -10,8 +10,6 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
log_dir="/var/log/$app/"
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
@ -42,10 +40,10 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
mkdir -p $log_dir
chmod 750 "$log_dir"
chmod -R o-rwx "$log_dir"
chown -R $app:www-data "$log_dir"
mkdir -p "/var/log/$app/"
chmod 750 "/var/log/$app/"
chmod -R o-rwx "/var/log/$app/"
chown -R $app:www-data "/var/log/$app/"
#=================================================
# GENERIC FINALIZATION

View file

@ -13,17 +13,11 @@ source /usr/share/yunohost/helpers
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
timezone="$(cat /etc/timezone)"
log_dir="/var/log/$app/"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..."
mkdir "$install_dir/bkp"
@ -51,7 +45,6 @@ then
fi
done
ynh_secure_remove --file="$install_dir/bkp"
fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -67,10 +60,10 @@ ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
mkdir -p $log_dir
chmod 750 "$log_dir"
chmod -R o-rwx "$log_dir"
chown -R $app:www-data "$log_dir"
mkdir -p "/var/log/$app/"
chmod 750 "/var/log/$app/"
chmod -R o-rwx "/var/log/$app/"
chown -R $app:www-data "/var/log/$app/"
ynh_use_logrotate --non-append