diff --git a/README.md b/README.md index 6ff18f5..1986546 100644 --- a/README.md +++ b/README.md @@ -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: * Official admin documentation: * Upstream app code repository: -* YunoHost documentation for this app: * Report a bug: ## Developer info diff --git a/README_fr.md b/README_fr.md index f0ee807..83acdf2 100644 --- a/README_fr.md +++ b/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 ! - -![Logo Paheko](https://master.garradin.eu/garradin-devient-paheko/logo_v3_small-fs8.png) +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 : * Documentation officielle de l’admin : * Dépôt de code officiel de l’app : -* Documentation YunoHost pour cette app : * Signaler un bug : ## Informations pour les développeurs diff --git a/conf/config.local.user.php b/conf/config.local.user.php index 04b8d27..dbcdf62 100644 --- a/conf/config.local.user.php +++ b/conf/config.local.user.php @@ -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; diff --git a/conf/config.local.yunohost.php b/conf/config.local.yunohost.php index 3cd4e76..ecc707a 100644 --- a/conf/config.local.yunohost.php +++ b/conf/config.local.yunohost.php @@ -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 diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 1984b74..58773d8 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -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. diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index e6e0e37..457fcbe 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -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`. diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 2d9c39a..3ba4e49 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -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. diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md index 16f89f6..8f02fb6 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -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 ! - -![Logo Paheko](https://master.garradin.eu/garradin-devient-paheko/logo_v3_small-fs8.png) +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. diff --git a/doc/PRE_INSTALL.md b/doc/PRE_INSTALL.md new file mode 100644 index 0000000..4ce1f05 --- /dev/null +++ b/doc/PRE_INSTALL.md @@ -0,0 +1 @@ +The SSO is not implemented for this app and YunoHost is not sure for hundred of users... diff --git a/doc/PRE_INSTALL_fr.md b/doc/PRE_INSTALL_fr.md new file mode 100644 index 0000000..cc33de3 --- /dev/null +++ b/doc/PRE_INSTALL_fr.md @@ -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... diff --git a/manifest.toml b/manifest.toml index 7fa5c73..81063cb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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" diff --git a/scripts/install b/scripts/install index eaf582e..aa44ceb 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/remove b/scripts/remove index 4993569..5b17c2d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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 diff --git a/scripts/restore b/scripts/restore index be63aa6..9a43dad 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1708bd2..e2f7aea 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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