diff --git a/ALL_README.md b/ALL_README.md index 3d6c579..77b7509 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -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) diff --git a/README.md b/README.md index a3b284f..d25db0f 100644 --- a/README.md +++ b/README.md @@ -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:** diff --git a/README_eu.md b/README_eu.md new file mode 100644 index 0000000..3fea5e9 --- /dev/null +++ b/README_eu.md @@ -0,0 +1,50 @@ + + +# 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:** + +## Pantaila-argazkiak + +![Paheko(r)en pantaila-argazkia](./doc/screenshots/screenshot.png) + +## Dokumentazioa eta baliabideak + +- Aplikazioaren webgune ofiziala: +- Administratzaileen dokumentazio ofiziala: +- Jatorrizko aplikazioaren kode-gordailua: +- YunoHost Denda: +- Eman errore baten berri: + +## 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:** diff --git a/README_fr.md b/README_fr.md index 89a3cc2..55ff871 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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 :** diff --git a/README_gl.md b/README_gl.md index c01a267..5ce45ef 100644 --- a/README_gl.md +++ b/README_gl.md @@ -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:** diff --git a/conf/config.local.php b/conf/config.local.php index 1dfb6ab..09a7e21 100644 --- a/conf/config.local.php +++ b/conf/config.local.php @@ -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 diff --git a/conf/config.local.user.php b/conf/config.local.user.php index 84f945d..aeecd42 100644 --- a/conf/config.local.user.php +++ b/conf/config.local.user.php @@ -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__'; + diff --git a/manifest.toml b/manifest.toml index 4bab0e9..8ec7626 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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"] diff --git a/scripts/upgrade b/scripts/upgrade index d652b3d..a087074 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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/