1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotify_ynh.git synced 2024-09-03 20:36:26 +02:00

new permissions system

This commit is contained in:
Clément 2020-04-13 14:29:00 +02:00
parent 12d245ab31
commit e6d2695e00
2 changed files with 7 additions and 2 deletions

View file

@ -153,7 +153,7 @@ yunohost service add $app
ynh_print_info "Configuring SSOwat..."
# Make app public if necessary
ynh_app_setting_set $app unprotected_uris "/"
ynh_permission_update --permission "main" --add visitors
#=================================================
# RELOAD NGINX

View file

@ -153,7 +153,12 @@ chown -R $app: $final_path/data
#=================================================
ynh_print_info "Upgrading SSOwat configuration..."
ynh_app_setting_set $app unprotected_uris "/"
unprotected_uris=$(ynh_app_setting_get --app=$app --key=unprotected_uris)
if [ ! -z "$unprotected_uris" ]; then
ynh_app_setting_delete --app=$app --key=unprotected_uris
fi
ynh_permission_update --permission "main" --add visitors
#=================================================
# RELOAD SERVICE