From 85514da9e712a4958ae28d90ad6150157114de6f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 9 Apr 2020 17:08:38 +0200 Subject: [PATCH] Upgrade to new permission system --- manifest.json | 2 +- scripts/install | 6 +++--- scripts/upgrade | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 8c7c3d4..4b0b9a8 100644 --- a/manifest.json +++ b/manifest.json @@ -23,7 +23,7 @@ } ], "requirements": { - "yunohost": ">= 3.7" + "yunohost": ">= 3.8" }, "multi_instance": true, "services": [ diff --git a/scripts/install b/scripts/install index 622ef9d..0fa1a54 100644 --- a/scripts/install +++ b/scripts/install @@ -279,13 +279,13 @@ ynh_systemd_action --service_name=${app}-streaming --action="start" --log_path=s #================================================= ynh_script_progression --message="Configuring SSOwat..." --weight=2 +ynh_permission_update --permission="main" --auth_header=false + # Make app public if necessary if [ $is_public -eq 1 ] then - # unprotected_uris allows SSO credentials to be passed anyway. - ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" + ynh_permission_update --permission="main" --add="visitors" fi -ynh_app_setting_set --app=$app --key=noauth_uris --value="/" #================================================= # RELOAD NGINX diff --git a/scripts/upgrade b/scripts/upgrade index b2f6830..01224cb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -345,13 +345,13 @@ chown -R $app: $final_path #================================================= ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1 +ynh_permission_update --permission="main" --auth_header=false + # Make app public if necessary if [ $is_public -eq 1 ] then - # unprotected_uris allows SSO credentials to be passed anyway - ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" + ynh_permission_update --permission="main" --add="visitors" fi -ynh_app_setting_set --app=$app --key=noauth_uris --value="/" #================================================= # START SYSTEMD SERVICE