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:
parent
fc28a504c8
commit
60f3584c5e
2 changed files with 4 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
"id": "riot",
|
||||
"packaging_format": 1,
|
||||
"requirements": {
|
||||
"yunohost": ">= 3.5.2.2"
|
||||
"yunohost": ">= 3.7.0.6"
|
||||
},
|
||||
"description": {
|
||||
"en": "A web client for matrix",
|
||||
|
|
|
@ -57,11 +57,9 @@ ynh_script_progression --message="Protecting directory"
|
|||
set_permission
|
||||
|
||||
ynh_script_progression --message="Configuring permissions"
|
||||
if [ "$is_public" = "0" ];
|
||||
then # Retire l'accès public
|
||||
ynh_app_setting_delete --app $app --key skipped_uris
|
||||
else
|
||||
ynh_app_setting_set --app $app --key unprotected_uris --value "/"
|
||||
if [ "$is_public" == '1' ];
|
||||
then
|
||||
ynh_permission_update --permission "main" --add "visitors"
|
||||
fi
|
||||
|
||||
# Recharge la configuration Nginx
|
||||
|
|
Loading…
Add table
Reference in a new issue