From c3fec1682064dd49a449535e6833c0a82aeffe1b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 16 May 2021 13:52:40 +0200 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index d4eada2..c4d3680 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,15 +57,7 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi -if ! ynh_permission_exists --permission="admin"; then - # Create the required permissions - ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin -fi - -# Create a permission if needed -if ! ynh_permission_exists --permission="api"; then - ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true" -fi +ynh_permission_url --permission="main" --url="/_utils/index.html" --add_url="/" --auth_header=false #================================================= # NGINX CONFIGURATION