1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00

Add permission support

This commit is contained in:
Josué Tille 2020-03-25 16:20:19 +01:00
parent fc28a504c8
commit 60f3584c5e
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 4 additions and 6 deletions

View file

@ -3,7 +3,7 @@
"id": "riot", "id": "riot",
"packaging_format": 1, "packaging_format": 1,
"requirements": { "requirements": {
"yunohost": ">= 3.5.2.2" "yunohost": ">= 3.7.0.6"
}, },
"description": { "description": {
"en": "A web client for matrix", "en": "A web client for matrix",

View file

@ -57,11 +57,9 @@ ynh_script_progression --message="Protecting directory"
set_permission set_permission
ynh_script_progression --message="Configuring permissions" ynh_script_progression --message="Configuring permissions"
if [ "$is_public" = "0" ]; if [ "$is_public" == '1' ];
then # Retire l'accès public then
ynh_app_setting_delete --app $app --key skipped_uris ynh_permission_update --permission "main" --add "visitors"
else
ynh_app_setting_set --app $app --key unprotected_uris --value "/"
fi fi
# Recharge la configuration Nginx # Recharge la configuration Nginx