From e937a6d460c98791e17647154f1762cb1b6485d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 13 Apr 2020 10:32:54 +0200 Subject: [PATCH] reverse the removal of older parameter and add of the new permission system --- scripts/upgrade | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 435ebeb..abab253 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -126,17 +126,18 @@ chown -R alltube: $final_path/templates_c/ #================================================= ynh_script_progression --message="Configuring SSOwat..." --weight=1 +#remove old parameters +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 + # Make app public if necessary if [ $is_public -eq 1 ] then ynh_permission_update --permission "main" --add visitors fi -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 - #================================================= # RELOAD NGINX #=================================================