diff --git a/scripts/upgrade b/scripts/upgrade index 13cd1d1..e031eb6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -79,6 +79,7 @@ if ! ynh_permission_exists --permission="api"; then fi if ynh_compare_current_package_version --comparison le --version 2.3.0~ynh1 +then mkdir -p "$final_path/uploads" ynh_permission_delete --permission="admin" @@ -86,7 +87,7 @@ if ynh_compare_current_package_version --comparison le --version 2.3.0~ynh1 ynh_permission_create --permission="admin" --url="/admin" --additional_urls="/admin /api" --allowed=$admin --auth_header=false ynh_permission_create --permission="api" --url="/public" --additional_urls="/api/public" --allowed="visitors" --show_tile="false" --protected="true" -then +fi #=================================================