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",
|
"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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue