mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
Merge branch 'testing' into master
This commit is contained in:
commit
aad6a3b3b3
9 changed files with 161 additions and 40 deletions
85
README.md
85
README.md
|
@ -1,28 +1,71 @@
|
||||||
# Garradin
|
# Garradin
|
||||||
|
|
||||||
## Garradin est un logiciel libre de gestion associative. il permet de gérer des membres.
|
[](https://dash.yunohost.org/appci/app/garradin)  
|
||||||
|
|
||||||
|
|
||||||
### State : Testing/Production ###
|
|
||||||
|
|
||||||
report issue/rapport de bogues: https://github.com/Yunohost-Apps/garradin_ynh/issues
|
|
||||||
site de garradin : http://garradin.eu
|
|
||||||
|
|
||||||
[](https://ci-apps.yunohost.org/jenkins/job/garradin%20%28Community%29/lastBuild/consoleFull)<br>
|
|
||||||
[](https://install-app.yunohost.org/?app=garradin)
|
[](https://install-app.yunohost.org/?app=garradin)
|
||||||
|
|
||||||
## Installation :
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
- CLI
|
|
||||||
`sudo yunohost app install https://github.com/Yunohost-Apps/garradin_ynh`
|
|
||||||
|
|
||||||
- À travers l'interface d'administration
|
> *This package allows you to install Garradin 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.*
|
||||||
|
|
||||||
### TODO list :
|
## Overview
|
||||||
- Permissions de certains fichiers sensibles ?
|
Garradin is a free association managing software.
|
||||||
|
|
||||||
#### Problèmes / Avertissements :
|
**Shipped version:** 0.9.5
|
||||||
- le système SSO n'est pas implémenté, ni l'installation directe. L'utilisateur admin devra créer son compte avec le formulaire de création de compte qu'il trouvera à la fin de l'installation. Plusieurs raisons m'ont poussé à ne pas implémenter le SSO :
|
|
||||||
- Le SSO n'est pas implémenté dans l'app originale.
|
## Screenshots
|
||||||
- Avoir 150+ utilisateurs dans Yunohost n'est pas très pratique, ni très sécurisé, et revient en fin de compte à centraliser les services.
|
|
||||||
- Ce formulaire laisse le choix à l'administrateur de choisir les modalités de création de son compte. On pourrait peut-être me reprocher de ne pas avoir intégré ce formulaire dans le formulaire d'installation que l'utilisateur remplit avant l'installation de ce paquet. Il est vrai que j'aurais pu mettre les ~dix champs qui compose le formulaire de Garradin, mais je ne trouvais pas cela très pratique.
|

|
||||||
- Cette application n'est disponible qu'en Français (la loi 1901 sur les asso n'étant appliquée qu'en France).
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|
* [Official demo](https://garradin.eu/essai/)
|
||||||
|
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
* Official documentation: https://fossil.kd2.org/garradin/wiki?name=Documentation
|
||||||
|
|
||||||
|
## YunoHost specific features
|
||||||
|
|
||||||
|
#### Multi-user support
|
||||||
|
|
||||||
|
LDAP is not supported yet.
|
||||||
|
|
||||||
|
#### Supported architectures
|
||||||
|
|
||||||
|
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/garradin/)
|
||||||
|
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/garradin/)
|
||||||
|
|
||||||
|
## Limitations
|
||||||
|
|
||||||
|
* The application is ONLY translated into french.
|
||||||
|
|
||||||
|
**More info on the documentation page:**
|
||||||
|
https://yunohost.org/packaging_apps
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
* Report a bug: https://github.com/YunoHost-Apps/garradin_ynh/issues
|
||||||
|
* App website: https://garradin.eu
|
||||||
|
* Upstream app repository: https://fossil.kd2.org/garradin/wiki?name=Garradin
|
||||||
|
* YunoHost website: https://yunohost.org/
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Developer info
|
||||||
|
----------------
|
||||||
|
|
||||||
|
**Only if you want to use a testing branch for coding, instead of merging directly into master.**
|
||||||
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/garradin_ynh/tree/testing).
|
||||||
|
|
||||||
|
To try the testing branch, please proceed like that.
|
||||||
|
```
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/garradin_ynh/tree/testing --debug
|
||||||
|
or
|
||||||
|
sudo yunohost app upgrade REPLACEBYYOURAPP -u https://github.com/YunoHost-Apps/garradin_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
70
README_fr.md
Normal file
70
README_fr.md
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
# Garradin
|
||||||
|
|
||||||
|
[](https://dash.yunohost.org/appci/app/garradin)  
|
||||||
|
[](https://install-app.yunohost.org/?app=garradin)
|
||||||
|
|
||||||
|
*[Read this readme in english.](./README.md)*
|
||||||
|
|
||||||
|
> *Ce package vous permet d'installer REPLACEBYYOURAPP rapidement et simplement sur un serveur YunoHost.
|
||||||
|
Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install) pour apprendre comment l'installer.*
|
||||||
|
|
||||||
|
## Vue d'ensemble
|
||||||
|
Garradin est un logiciel libre de gestion associative. il permet de gérer des membres.
|
||||||
|
|
||||||
|
**Version incluse :** 0.9.5
|
||||||
|
|
||||||
|
## Captures d'écran
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Démo
|
||||||
|
|
||||||
|
* [Démo officielle](https://garradin.eu/essai/)
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
* Documentation officielle : https://fossil.kd2.org/garradin/wiki?name=Documentation
|
||||||
|
|
||||||
|
## Caractéristiques spécifiques YunoHost
|
||||||
|
|
||||||
|
#### Support multi-utilisateur
|
||||||
|
|
||||||
|
* L'authentification LDAP n'est pas disponible.
|
||||||
|
|
||||||
|
#### Architectures supportées
|
||||||
|
|
||||||
|
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/garradin/)
|
||||||
|
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/garradin/)
|
||||||
|
|
||||||
|
## Limitations
|
||||||
|
|
||||||
|
* Garradin n'est disponible qu'en français.
|
||||||
|
|
||||||
|
**Plus d'informations sur la page de documentation :**
|
||||||
|
https://yunohost.org/packaging_apps
|
||||||
|
|
||||||
|
## Liens
|
||||||
|
|
||||||
|
* Signaler un bug : https://github.com/YunoHost-Apps/garradin_ynh/issues
|
||||||
|
* Site de l'application : http://garradin.eu
|
||||||
|
* Dépôt de l'application principale : https://fossil.kd2.org/garradin/wiki?name=Garradin
|
||||||
|
* Site web YunoHost : https://yunohost.org/
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Informations pour les développeurs
|
||||||
|
----------------
|
||||||
|
|
||||||
|
**Seulement si vous voulez utiliser une branche de test pour le codage, au lieu de fusionner directement dans la banche principale.**
|
||||||
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/garradin_ynh/tree/testing).
|
||||||
|
|
||||||
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
|
```
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/garradin_ynh/tree/testing --debug
|
||||||
|
ou
|
||||||
|
sudo yunohost app upgrade REPLACEBYYOURAPP -u https://github.com/YunoHost-Apps/garradin_ynh/tree/testing --debug
|
||||||
|
```
|
|
@ -1,13 +1,13 @@
|
||||||
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
location __PATH__ {
|
location __PATH__ {
|
||||||
|
|
||||||
# Path to source
|
# Path to source
|
||||||
alias __FINALPATH__/www/ ;
|
alias __FINALPATH__/www/ ;
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example PHP configuration (remove if not used)
|
|
||||||
index index.php /_route.php;
|
index index.php /_route.php;
|
||||||
try_files $uri $uri/ index.php /_route.php;
|
try_files $uri $uri/ index.php /_route.php;
|
||||||
|
|
||||||
|
@ -24,8 +24,6 @@ if ($scheme = http) {
|
||||||
# Increase size limit
|
# Increase size limit
|
||||||
client_max_body_size 2M;
|
client_max_body_size 2M;
|
||||||
|
|
||||||
# PHP configuration end
|
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
BIN
images/compta.png
Normal file
BIN
images/compta.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
images/emails.png
Normal file
BIN
images/emails.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
images/membre.png
Normal file
BIN
images/membre.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
images/site.jpg
Normal file
BIN
images/site.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 206 KiB |
BIN
images/wiki.png
Normal file
BIN
images/wiki.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
|
@ -29,27 +29,37 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
|
||||||
# Needed for helper "ynh_add_nginx_config"
|
# Needed for helper "ynh_add_nginx_config"
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
|
|
||||||
# #=================================================
|
#=================================================
|
||||||
# # CHECK THE SYNTAX OF THE PATHS
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
# #=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Backing up the app before changing its url (may take a while)..." --time --weight=1
|
||||||
|
|
||||||
# test -n "$old_path" || old_path="/"
|
# Backup the current version of the app
|
||||||
# test -n "$new_path" || new_path="/"
|
ynh_backup_before_upgrade
|
||||||
# new_path=$(ynh_normalize_url_path $new_path)
|
ynh_clean_setup () {
|
||||||
# old_path=$(ynh_normalize_url_path $old_path)
|
# Remove the new domain config file, the remove script won't do it as it doesn't know yet its location.
|
||||||
|
ynh_secure_remove --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
|
||||||
|
|
||||||
|
# restore it if the upgrade fails
|
||||||
|
ynh_restore_upgradebackup
|
||||||
|
}
|
||||||
|
# Exit if an error occurs during the execution of the script
|
||||||
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK WHICH PARTS SHOULD BE CHANGED
|
# CHECK WHICH PARTS SHOULD BE CHANGED
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
change_domain=0
|
change_domain=0
|
||||||
if [ "$old_domain" != "$new_domain" ]; then
|
if [ "$old_domain" != "$new_domain" ]
|
||||||
change_domain=1
|
then
|
||||||
|
change_domain=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
change_path=0
|
change_path=0
|
||||||
if [ "$old_path" != "$new_path" ]; then
|
if [ "$old_path" != "$new_path" ]
|
||||||
change_path=1
|
then
|
||||||
|
change_path=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue