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:
parent
12d245ab31
commit
e6d2695e00
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue