mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
commit
f009657c5a
16 changed files with 85 additions and 67 deletions
|
@ -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)
|
||||
|
|
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
|||
|
||||
# Z-Push for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/z-push)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/z-push/)  
|
||||
|
||||
[](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>
|
||||
|
|
|
@ -5,7 +5,7 @@ No se debe editar a mano.
|
|||
|
||||
# Z-Push para Yunohost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/z-push)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/z-push/)  
|
||||
|
||||
[](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>
|
||||
|
|
|
@ -5,7 +5,7 @@ EZ editatu eskuz.
|
|||
|
||||
# Z-Push YunoHost-erako
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/z-push)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/z-push/)  
|
||||
|
||||
[](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>
|
||||
|
|
|
@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
|
|||
|
||||
# Z-Push pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/z-push)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/z-push/)  
|
||||
|
||||
[](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 l’app : <http://z-push.org>
|
||||
|
|
|
@ -5,7 +5,7 @@ NON debe editarse manualmente.
|
|||
|
||||
# Z-Push para YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/z-push)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/z-push/)  
|
||||
|
||||
[](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
43
README_id.md
Normal 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
|
||||
|
||||
[](https://ci-apps.yunohost.org/ci/apps/z-push/)  
|
||||
|
||||
[](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>
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
# YunoHost 上的 Z-Push
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/z-push)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/z-push/)  
|
||||
|
||||
[](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>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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",
|
||||
]
|
||||
|
|
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue