mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
commit
29d31e91b6
15 changed files with 36 additions and 87 deletions
|
@ -16,12 +16,10 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
|
||||
## Overview
|
||||
|
||||
Paheko (we chose the name 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, etc. etc..
|
||||
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.2.11~ynh5
|
||||
**Shipped version:** 1.3.0~ynh1
|
||||
|
||||
**Demo:** https://paheko.cloud/essai/
|
||||
|
||||
|
@ -34,7 +32,6 @@ It is the tool of choice for managing an association, a sports club, an NGO, etc
|
|||
* Official app website: <https://paheko.cloud>
|
||||
* Official admin documentation: <https://fossil.kd2.org/paheko/wiki?name=Documentation>
|
||||
* Upstream app code repository: <https://fossil.kd2.org/paheko/dir?ci=tip>
|
||||
* YunoHost documentation for this app: <https://yunohost.org/app_paheko>
|
||||
* Report a bug: <https://github.com/YunoHost-Apps/paheko_ynh/issues>
|
||||
|
||||
## Developer info
|
||||
|
|
16
README_fr.md
16
README_fr.md
|
@ -16,21 +16,10 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
|||
|
||||
## Vue d’ensemble
|
||||
|
||||
Paheko (Nous avons choisi le nom Paheko, un 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, etc etc.
|
||||
|
||||
## Garradin devient Paheko !
|
||||
### Pourquoi changer de nom ?
|
||||
|
||||
Il est apparu que la prononciation de "Garradin" en français est parfois un peu compliquée, de même que son orthographe.
|
||||
|
||||
Il existe déjà un logiciel commercial nommé "Garradin" en Australie, qui fait de la finance pour de grands groupes. Pour le moment cela ne posait pas de problème car notre solution de gestion d'association n'était disponible qu'en français et jusque là n'avait pas beaucoup de portée. Mais on aimerait bien pouvoir proposer le logiciel dans d'autres langues dans les années à venir, et comme Garradin (le projet français) commence à être assez connu, il semble nécessaire de limiter les risques de confusion à l'avenir avec cette solution commerciale.
|
||||
|
||||
Vous pouvez mettre à jour Garradin avec Paheko !
|
||||
|
||||

|
||||
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.2.11~ynh5
|
||||
**Version incluse :** 1.3.0~ynh1
|
||||
|
||||
**Démo :** https://paheko.cloud/essai/
|
||||
|
||||
|
@ -43,7 +32,6 @@ Paheko (Nous avons choisi le nom Paheko, un mot de la langue Māori qui signifie
|
|||
* Site officiel de l’app : <https://paheko.cloud>
|
||||
* Documentation officielle de l’admin : <https://fossil.kd2.org/paheko/wiki?name=Documentation>
|
||||
* Dépôt de code officiel de l’app : <https://fossil.kd2.org/paheko/dir?ci=tip>
|
||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_paheko>
|
||||
* Signaler un bug : <https://github.com/YunoHost-Apps/paheko_ynh/issues>
|
||||
|
||||
## Informations pour les développeurs
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* Ce fichier représente un exemple des constantes de configuration
|
||||
* disponibles pour Garradin.
|
||||
* disponibles pour Paheko.
|
||||
*
|
||||
* Modifiez ce fichier à votre guise, il ne sera pas modifié lors des mises à jour.
|
||||
* Consultez le fichier config.dist.php pour disposer d'un exemple.
|
||||
|
@ -10,4 +10,4 @@
|
|||
*/
|
||||
|
||||
// Nécessaire pour situer les constantes dans le bon namespace
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
|
||||
// Nécessaire pour situer les constantes dans le bon namespace
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
/**
|
||||
* Clé secrète, doit être unique à chaque instance de Garradin
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
## Custom configurations
|
||||
|
||||
If you wish, you can add personal custom configurations by editing the `__INSTALL_DIR__/config.local.user.php` file. To see the possibilities, you can read the `__INSTALL_DIR__/config.dist.php` file first.
|
||||
|
||||
|
||||
If you wish, you can add custom configurations inside `__INSTALL_DIR__/config.local.user.php`. To see the possibilities, you can read the `__INSTALL_DIR__/config.dist.php` file first.
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
## Configurations personnelles
|
||||
|
||||
Vous pouvez si vous le souhaitez ajouter des configurations personnelles en éditant le fichier `__INSTALL_DIR__/config.local.user.php`.
|
||||
Pour voir les possibilités vous pouvez lire auparavant le fichier `__INSTALL_DIR__/config.dist.php`.
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
Paheko (we chose the name 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, etc. etc..
|
||||
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.
|
||||
|
|
|
@ -1,12 +1 @@
|
|||
Paheko (Nous avons choisi le nom Paheko, un 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, etc etc.
|
||||
|
||||
## Garradin devient Paheko !
|
||||
### Pourquoi changer de nom ?
|
||||
|
||||
Il est apparu que la prononciation de "Garradin" en français est parfois un peu compliquée, de même que son orthographe.
|
||||
|
||||
Il existe déjà un logiciel commercial nommé "Garradin" en Australie, qui fait de la finance pour de grands groupes. Pour le moment cela ne posait pas de problème car notre solution de gestion d'association n'était disponible qu'en français et jusque là n'avait pas beaucoup de portée. Mais on aimerait bien pouvoir proposer le logiciel dans d'autres langues dans les années à venir, et comme Garradin (le projet français) commence à être assez connu, il semble nécessaire de limiter les risques de confusion à l'avenir avec cette solution commerciale.
|
||||
|
||||
Vous pouvez mettre à jour Garradin avec Paheko !
|
||||
|
||||

|
||||
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.
|
||||
|
|
1
doc/PRE_INSTALL.md
Normal file
1
doc/PRE_INSTALL.md
Normal file
|
@ -0,0 +1 @@
|
|||
The SSO is not implemented for this app and YunoHost is not sure for hundred of users...
|
1
doc/PRE_INSTALL_fr.md
Normal file
1
doc/PRE_INSTALL_fr.md
Normal file
|
@ -0,0 +1 @@
|
|||
Le SSO n'est pas implémenté pour cette application et YunoHost n'est pas sûr pour une centaine d'utilisateurs...
|
|
@ -5,7 +5,7 @@ name = "Paheko"
|
|||
description.en = "Software to manage association"
|
||||
description.fr = "Logiciel libre de gestion d'association"
|
||||
|
||||
version = "1.2.11~ynh5"
|
||||
version = "1.3.0~ynh1"
|
||||
|
||||
maintainers = ["rodinux"]
|
||||
|
||||
|
@ -35,15 +35,13 @@ ram.runtime = "50M"
|
|||
default = "/paheko"
|
||||
|
||||
[install.init_main_permission]
|
||||
help.en = "The SSO is not implemented for this app and YunoHost is not sure for hundred of users..."
|
||||
help.fr = "Le SSO n'est pas implémenté pour cette application et YunoHost n'est pas sûr pour une centaine d'utilisateurs..."
|
||||
type = "group"
|
||||
default = "visitors"
|
||||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
url = "https://fossil.kd2.org/paheko/uv/paheko-1.2.11.tar.gz"
|
||||
sha256 = "9d8a505d9165c38ee0d262316ba636536ebddf0a6127b2e731bc231fe053f28d"
|
||||
url = "https://fossil.kd2.org/paheko/uv/paheko-1.3.0.tar.gz"
|
||||
sha256 = "2b5552db642a05edabb21a7187027c3cf3b2e0ec3cfb5921106de99a9453755c"
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
|
@ -53,4 +51,4 @@ ram.runtime = "50M"
|
|||
main.url = "/"
|
||||
|
||||
[resources.apt]
|
||||
packages = "php8.2-sqlite3 php8.2-gd php8.2-intl php8.2-cli php8.2-gnupg php8.2-mbstring"
|
||||
packages = "php8.2-sqlite3, php8.2-gd, php8.2-intl, php8.2-cli, php8.2-gnupg, php8.2-mbstring"
|
||||
|
|
|
@ -21,18 +21,13 @@ chmod -R o-rwx "$install_dir"
|
|||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring PHP-FPM..." --weight=5
|
||||
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
||||
|
||||
# Create a dedicated PHP-FPM config
|
||||
ynh_add_fpm_config
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
|
|
|
@ -10,18 +10,13 @@ source _common.sh
|
|||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# REMOVE NGINX CONFIGURATION
|
||||
# REMOVE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
|
||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||
|
||||
# Remove the dedicated NGINX config
|
||||
ynh_remove_nginx_config
|
||||
|
||||
#=================================================
|
||||
# REMOVE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=2
|
||||
|
||||
# Remove the dedicated PHP-FPM config
|
||||
ynh_remove_fpm_config
|
||||
|
||||
|
|
|
@ -26,23 +26,19 @@ find "$install_dir/data" -type d -exec chmod 770 {} +
|
|||
find "$install_dir/data" -type f -exec chmod 660 {} +
|
||||
chmod 440 "$install_dir/config.local.php"
|
||||
chmod 440 "$install_dir/config.local.yunohost.php"
|
||||
|
||||
if [ -f "$install_dir/config.local.user.php" ]; then
|
||||
chmod 660 "$install_dir/config.local.user.php"
|
||||
if [[ -f "$install_dir/config.local.user.php" ]]; then
|
||||
chmod 660 "$install_dir/config.local.user.php"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
# RESTORE THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=6
|
||||
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"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -30,17 +30,20 @@ if [[ -z "${secret_key:-}" ]]; then
|
|||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP DATABASE, DATAS AND CONFIG LOCAL USER
|
||||
# BACKUP SQLITE DATABASE AND DATAS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5
|
||||
|
||||
|
||||
# copy data directory backup
|
||||
tmp_data_backup=$(mktemp -d)
|
||||
rsync -a $install_dir/data/ $tmp_data_backup/
|
||||
|
||||
if [ -f "$install_dir/config.local.user.php" ]; then
|
||||
cp -a $install_dir/config.local.user.php $tmp_data_backup/
|
||||
if [[ -f "$install_dir/config.local.user.php" ]]; then
|
||||
cp -a $install_dir/config.local.user.php $tmp_data_backup/
|
||||
fi
|
||||
|
||||
if [[ $(grep "Garradin" "$tmp_data_backup/config.local.user.php") ]] ; then
|
||||
ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$tmp_data_backup/config.local.user.php"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -50,7 +53,6 @@ fi
|
|||
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" --full_replace=1
|
||||
fi
|
||||
|
@ -59,18 +61,13 @@ chmod -R o-rwx "$install_dir"
|
|||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2
|
||||
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||
|
||||
# Create a dedicated PHP-FPM config
|
||||
ynh_add_fpm_config
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
|
@ -82,7 +79,7 @@ ynh_add_nginx_config
|
|||
ynh_script_progression --message="Updating a configuration file..." --weight=5
|
||||
|
||||
if ynh_compare_current_package_version --comparison lt --version 1.1.15~ynh1; then
|
||||
chmod 750 "$install_dir/config.local.user.php"
|
||||
chmod 750 "$install_dir/data/config.local.user.php"
|
||||
ynh_add_config --template="config.local.user.php" --destination="$install_dir/data/config.local.user.php"
|
||||
fi
|
||||
|
||||
|
@ -128,7 +125,7 @@ sleep 5
|
|||
ynh_secure_remove --file="$tmp_data_backup"
|
||||
|
||||
# clean duplicate folder if exist
|
||||
if [ -d "$install_dir/data/data" ]; then
|
||||
if [[ -d "$install_dir/data/data" ]]; then
|
||||
ynh_secure_remove --file="$install_dir/data/data"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue