1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opensondage_ynh.git synced 2024-09-03 19:46:28 +02:00

Merge pull request #90 from YunoHost-Apps/testing

Testing
This commit is contained in:
ljf (zamentur) 2023-03-06 12:34:58 +01:00 committed by GitHub
commit e265fbfc0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 14 deletions

View file

@ -5,7 +5,8 @@ It shall NOT be edited by hand.
# OpenSondage for YunoHost # OpenSondage for YunoHost
[![Integration level](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Working status](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg) [![Integration level](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Working status](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg)
[![Install OpenSondage with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensondage) [![Install OpenSondage with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensondage)
*[Lire ce readme en français.](./README_fr.md)* *[Lire ce readme en français.](./README_fr.md)*
@ -17,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
OpenSondage is an online service for planning an appointment or making a decision quickly and easily. No registration is required. OpenSondage is an online service for planning an appointment or making a decision quickly and easily. No registration is required.
**Shipped version:** 1.1.17~ynh2 **Shipped version:** 1.1.17~ynh3
**Demo:** https://framadate.org/ **Demo:** https://framadate.org/

View file

@ -5,25 +5,26 @@ It shall NOT be edited by hand.
# OpenSondage pour YunoHost # OpenSondage pour YunoHost
[![Niveau d'intégration](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg) [![Niveau dintégration](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg)
[![Installer OpenSondage avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensondage) [![Installer OpenSondage avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensondage)
*[Read this readme in english.](./README.md)* *[Read this readme in english.](./README.md)*
> *Ce package vous permet d'installer OpenSondage rapidement et simplement sur un serveur YunoHost. > *Ce package vous permet dinstaller OpenSondage rapidement et simplement sur un serveur YunoHost.
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
## Vue d'ensemble ## Vue densemble
OpenSondage est un service en ligne permettant de planifier un rendez-vous ou prendre des décisions rapidement et simplement. Aucune inscription préalable nest nécessaire. OpenSondage est un service en ligne permettant de planifier un rendez-vous ou prendre des décisions rapidement et simplement. Aucune inscription préalable nest nécessaire.
**Version incluse :** 1.1.17~ynh2 **Version incluse :** 1.1.17~ynh3
**Démo :** https://framadate.org/ **Démo :** https://framadate.org/
## Captures d'écran ## Captures décran
![Capture d'écran de OpenSondage](./doc/screenshots/screenshots.jpg) ![Capture décran de OpenSondage](./doc/screenshots/screenshots.jpg)
## Avertissements / informations importantes ## Avertissements / informations importantes
@ -38,9 +39,9 @@ OpenSondage est un service en ligne permettant de planifier un rendez-vous ou pr
## Documentations et ressources ## Documentations et ressources
* Site officiel de l'app : <https://framadate.org/> * Site officiel de lapp : <https://framadate.org/>
* Documentation officielle de l'admin : <https://framagit.org/framasoft/framadate/framadate/wikis/home> * Documentation officielle de ladmin : <https://framagit.org/framasoft/framadate/framadate/wikis/home>
* Dépôt de code officiel de l'app : <https://git.framasoft.org/framasoft/framadate> * Dépôt de code officiel de lapp : <https://git.framasoft.org/framasoft/framadate>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_opensondage> * Documentation YunoHost pour cette app : <https://yunohost.org/app_opensondage>
* Signaler un bug : <https://github.com/YunoHost-Apps/opensondage_ynh/issues> * Signaler un bug : <https://github.com/YunoHost-Apps/opensondage_ynh/issues>
@ -56,4 +57,4 @@ ou
sudo yunohost app upgrade opensondage -u https://github.com/YunoHost-Apps/opensondage_ynh/tree/testing --debug sudo yunohost app upgrade opensondage -u https://github.com/YunoHost-Apps/opensondage_ynh/tree/testing --debug
``` ```
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps> **Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>

View file

@ -7,7 +7,7 @@
"fr": "Service pour planifier un rendez-vous ou prendre une décision rapidement et facilement", "fr": "Service pour planifier un rendez-vous ou prendre une décision rapidement et facilement",
"de": "Service zur schnellen und einfachen Planung eines Termins oder zur Entscheidungsfindung" "de": "Service zur schnellen und einfachen Planung eines Termins oder zur Entscheidungsfindung"
}, },
"version": "1.1.17~ynh2", "version": "1.1.17~ynh3",
"url": "https://git.framasoft.org/framasoft/framadate", "url": "https://git.framasoft.org/framasoft/framadate",
"upstream": { "upstream": {
"license": "CECILL-B", "license": "CECILL-B",

View file

@ -164,6 +164,9 @@ then
# Everyone can access the app. # Everyone can access the app.
# The "main" permission is automatically created before the install script. # The "main" permission is automatically created before the install script.
ynh_permission_update --permission="main" --add="visitors" ynh_permission_update --permission="main" --add="visitors"
# Avoid /adminstuds to be caught by sso as /admin urls
ynh_permission_url --permission="main" --add_url="/adminstuds.php"
fi fi
# Only the admin can access the admin panel of the app (if the app has an admin panel) # Only the admin can access the admin panel of the app (if the app has an admin panel)

View file

@ -68,6 +68,9 @@ if ! ynh_permission_exists --permission="admin"; then
ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin
fi fi
# Avoid /adminstuds to be caught by sso as /admin urls
ynh_permission_url --permission="main" --add_url="/adminstuds.php"
# If db_name doesn't exist, create it # If db_name doesn't exist, create it
if [ -z "$db_name" ]; then if [ -z "$db_name" ]; then
db_name=$(ynh_sanitize_dbid --db_name=$app) db_name=$(ynh_sanitize_dbid --db_name=$app)