diff --git a/README.md b/README.md index 2abcf4d..46f3c88 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Alternative implementation of the Bitwarden server API written in Rust and compatible with upstream Bitwarden clients*, perfect for self-hosted deployment where running the official resource-heavy service might not be ideal. -**Shipped version:** 1.28.1~ynh1 +**Shipped version:** 1.29.0~ynh1 **Demo:** https://vault.bitwarden.com/#/register diff --git a/README_fr.md b/README_fr.md index cc33214..204ed76 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Alternative implementation of the Bitwarden server API written in Rust and compatible with upstream Bitwarden clients*, perfect for self-hosted deployment where running the official resource-heavy service might not be ideal. -**Version incluse :** 1.28.1~ynh1 +**Version incluse :** 1.29.0~ynh1 **Démo :** https://vault.bitwarden.com/#/register diff --git a/manifest.json b/manifest.json index cc749eb..9a5fb13 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Manage passwords and other sensitive informations", "fr": "Gérez les mots de passe et autres informations sensibles" }, - "version": "1.28.1~ynh1", + "version": "1.29.0~ynh1", "url": "https://github.com/dani-garcia/vaultwarden", "upstream": { "license": "GPL-3.0-or-later", diff --git a/scripts/install b/scripts/install index 848df74..b3b07a8 100644 --- a/scripts/install +++ b/scripts/install @@ -211,7 +211,7 @@ then ynh_permission_update --permission="main" --add="visitors" fi -ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity/connect/token" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" +ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" ynh_permission_create --permission="admin" --url="/admin" --allowed="$admin" --show_tile="false" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7df7129..68fde7a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,7 +109,9 @@ fi # Create a permission if needed if ! ynh_permission_exists --permission="api"; then - ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity/connect/token" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" + ynh_permission_create --permission="api" --url="/api" --additional_urls="/identity" --allowed="visitors" --auth_header="false" --show_tile="false" --protected="true" +else + ynh_permission_url --permission="api" --remove_url="/identity/connect/token" --add_url="/identity" fi # If datadir doesn't exist, create it