1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

Merge pull request #57 from YunoHost-Apps/testing

fix move mail config
This commit is contained in:
Robles Rodolphe 2024-04-06 20:53:01 +02:00 committed by GitHub
commit a53d0a2e57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 176 additions and 14 deletions

View file

@ -1,6 +1,6 @@
# All available README files by language
- [Read the README in English](README.md)
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)
- [Leggi il “README” in italiano](README_it.md)

View file

@ -9,7 +9,7 @@ It shall NOT be edited by hand.
[![Install Paheko with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=paheko)
*[Read this README is other languages.](./ALL_README.md)*
*[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install Paheko 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.*
@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Paheko (a word from the Māori language meaning "to cooperate", illustrating the purpose of the software: to improve together the daily management of an association) is software for associative management. It is the tool of choice for managing an association, a sports club, an NGO, etc. It is designed to meet the needs of a small to medium-sized structure: management of members, accounting, website, note-taking in meetings, archiving and sharing of the association's operating documents, discussion between members.
**Shipped version:** 1.3.6~ynh2
**Shipped version:** 1.3.6~ynh3
**Demo:** <https://paheko.cloud/essai/>

50
README_eu.md Normal file
View file

@ -0,0 +1,50 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# Paheko YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/paheko.svg)](https://dash.yunohost.org/appci/app/paheko) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/paheko.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/paheko.maintain.svg)
[![Instalatu Paheko YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=paheko)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek Paheko YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
Paheko (a word from the Māori language meaning "to cooperate", illustrating the purpose of the software: to improve together the daily management of an association) is software for associative management. It is the tool of choice for managing an association, a sports club, an NGO, etc. It is designed to meet the needs of a small to medium-sized structure: management of members, accounting, website, note-taking in meetings, archiving and sharing of the association's operating documents, discussion between members.
**Paketatutako bertsioa:** 1.3.6~ynh3
**Demoa:** <https://paheko.cloud/essai/>
## Pantaila-argazkiak
![Paheko(r)en pantaila-argazkia](./doc/screenshots/screenshot.png)
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://paheko.cloud>
- Administratzaileen dokumentazio ofiziala: <https://fossil.kd2.org/paheko/wiki?name=Documentation>
- Jatorrizko aplikazioaren kode-gordailua: <https://fossil.kd2.org/paheko/dir?ci=tip>
- YunoHost Denda: <https://apps.yunohost.org/app/paheko>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/paheko_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/paheko_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/paheko_ynh/tree/testing --debug
edo
sudo yunohost app upgrade paheko -u https://github.com/YunoHost-Apps/paheko_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Paheko (mot de la langue Māori qui signifie « coopérer », illustrant le but du logiciel : améliorer ensemble le quotidien de la gestion d'une association) est un logiciel de gestion associative. Il est l'outil de prédilection pour gérer une association, un club sportif, une ONG, etc. Il est conçu pour répondre aux besoins d'une structure de petite à moyenne taille : gestion des adhérents, comptabilité, site web, prise de notes en réunion, archivage et partage des documents de fonctionnement de l'association, discussion entre adhérents.
**Version incluse:** 1.3.6~ynh2
**Version incluse:** 1.3.6~ynh3
**Démo:** <https://paheko.cloud/essai/>

View file

@ -19,7 +19,7 @@ NON debe editarse manualmente.
Paheko (a word from the Māori language meaning "to cooperate", illustrating the purpose of the software: to improve together the daily management of an association) is software for associative management. It is the tool of choice for managing an association, a sports club, an NGO, etc. It is designed to meet the needs of a small to medium-sized structure: management of members, accounting, website, note-taking in meetings, archiving and sharing of the association's operating documents, discussion between members.
**Versión proporcionada:** 1.3.6~ynh2
**Versión proporcionada:** 1.3.6~ynh3
**Demo:** <https://paheko.cloud/essai/>

View file

@ -412,7 +412,7 @@ const USE_CRON = true;
* Défaut : false
*/
const SMTP_HOST = '__DOMAIN__';
//const SMTP_HOST = '__DOMAIN__';
/**
* Port du serveur SMTP
@ -423,7 +423,7 @@ const SMTP_HOST = '__DOMAIN__';
* Défaut : 587
*/
const SMTP_PORT = 25;
//const SMTP_PORT = 25;
/**
* Login utilisateur pour le server SMTP
@ -433,7 +433,7 @@ const SMTP_PORT = 25;
* Défaut : null
*/
const SMTP_USER = '__APP__';
//const SMTP_USER = '__APP__';
/**
* Mot de passe pour le serveur SMTP
@ -443,7 +443,7 @@ const SMTP_USER = '__APP__';
* Défaut : null
*/
const SMTP_PASSWORD = '__MAIL_PWD__';
//const SMTP_PASSWORD = '__MAIL_PWD__';
/**
* Sécurité du serveur SMTP
@ -456,7 +456,7 @@ const SMTP_PASSWORD = '__MAIL_PWD__';
* Défaut : STARTTLS
*/
const SMTP_SECURITY = 'STARTTLS';
//const SMTP_SECURITY = 'STARTTLS';
/**
* Nom du serveur utilisé dans le HELO SMTP
@ -469,7 +469,7 @@ const SMTP_SECURITY = 'STARTTLS';
* @var null|string
*/
const SMTP_HELO_HOSTNAME = '__DOMAIN__';
//const SMTP_HELO_HOSTNAME = '__DOMAIN__';
/**
* Adresse e-mail destinée à recevoir les erreurs de mail
@ -485,7 +485,7 @@ const SMTP_HELO_HOSTNAME = '__DOMAIN__';
* Défaut : null
*/
const MAIL_RETURN_PATH = '__APP__@__DOMAIN__';
//const MAIL_RETURN_PATH = '__APP__@__DOMAIN__';
/**
@ -503,7 +503,7 @@ const MAIL_RETURN_PATH = '__APP__@__DOMAIN__';
* Défaut : null
*/
const MAIL_SENDER = '__APP__@__DOMAIN__';
//const MAIL_SENDER = '__APP__@__DOMAIN__';
/**
* Mot de passe pour l'accès à l'API permettant de gérer les mails d'erreur

View file

@ -10,3 +10,104 @@
// Nécessaire pour situer les constantes dans le bon namespace
namespace Paheko;
/**
* Hôte du serveur SMTP, mettre à false (défaut) pour utiliser la fonction
* mail() de PHP
*
* Défaut : false
*/
const SMTP_HOST = '__DOMAIN__';
/**
* Port du serveur SMTP
*
* 25 = port standard pour connexion non chiffrée (465 pour Gmail)
* 587 = port standard pour connexion SSL
*
* Défaut : 587
*/
const SMTP_PORT = 25;
/**
* Login utilisateur pour le server SMTP
*
* mettre à null pour utiliser un serveur local ou anonyme
*
* Défaut : null
*/
const SMTP_USER = '__APP__';
/**
* Mot de passe pour le serveur SMTP
*
* mettre à null pour utiliser un serveur local ou anonyme
*
* Défaut : null
*/
const SMTP_PASSWORD = '__MAIL_PWD__';
/**
* Sécurité du serveur SMTP
*
* NONE = pas de chiffrement
* SSL = connexion SSL native
* TLS = connexion TLS native (le plus sécurisé)
* STARTTLS = utilisation de STARTTLS (moyennement sécurisé)
*
* Défaut : STARTTLS
*/
const SMTP_SECURITY = 'STARTTLS';
/**
* Nom du serveur utilisé dans le HELO SMTP
*
* Si NULL, alors le nom renseigné comme SERVER_NAME (premier nom du virtual host Apache)
* sera utilisé.
*
* Defaut : NULL
*
* @var null|string
*/
const SMTP_HELO_HOSTNAME = '__DOMAIN__';
/**
* Adresse e-mail destinée à recevoir les erreurs de mail
* (adresses invalides etc.) Return-Path
*
* Si laissé NULL, alors l'adresse e-mail de l'association sera utilisée.
* En cas d'hébergement de plusieurs associations, il est conseillé
* d'utiliser une adresse par association.
*
* Voir la documentation de configuration sur des exemples de scripts
* permettant de traiter les mails reçus à cette adresse.
*
* Défaut : null
*/
const MAIL_RETURN_PATH = '__APP__@__DOMAIN__';
/**
* Adresse e-mail expéditrice des messages (Sender)
*
* Si vous envoyez des mails pour plusieurs associations, il est souhaitable
* de forcer l'adresse d'expéditeur des messages pour passer les règles SPF et DKIM.
*
* Dans ce cas l'adresse de l'association sera indiquée en "Reply-To", et
* l'adresse contenue dans MAIL_SENDER sera dans le From.
*
* Si laissé NULL, c'est l'adresse de l'association indiquée dans la configuration
* qui sera utilisée.
*
* Défaut : null
*/
const MAIL_SENDER = '__APP__@__DOMAIN__';

View file

@ -5,7 +5,7 @@ name = "Paheko"
description.en = "Association management software"
description.fr = "Logiciel de gestion d'association"
version = "1.3.6~ynh2"
version = "1.3.6~ynh3"
maintainers = ["rodinux"]

View file

@ -57,6 +57,7 @@ if [ -d "$install_dir/data/data" ]; then
ynh_secure_remove "$install_dir/data/data"
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@ -72,6 +73,7 @@ fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================
@ -102,6 +104,14 @@ chown $app:$app "$install_dir/config.local.php"
ynh_replace_string --match_string="//require '$data_dir/data/config.local.user.php';" --replace_string="require '$data_dir/data/config.local.user.php';" --target_file="$install_dir/config.local.php"
if ynh_compare_current_package_version --comparison le --version 1.3.6~ynh2 && ynh_compare_current_package_version --comparison ge --version 1.3.0~ynh1; then
ynh_script_progression --message="keep old user configuration file..." --weight=5
mv "$data_dir/data/config.local.user.php" "$data_dir/data/config.local.user.php.old"
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"
chmod 640 "$data_dir/data/config.local.user.php"
chown $app:$app "$data_dir/data/config.local.user.php"
fi
#=================================================
# ADD A CONFIG FILE
#=================================================
@ -123,6 +133,7 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then
chown $app:$app "$data_dir/data/config.local.user.php"
fi
if [ -f "$install_dir/data/association.sqlite" ]; then
ynh_script_progression --message="Moving db files..." --weight=5
mv $install_dir/data/association.* $data_dir/data/