From a5c1e0806e520105f7f08db1b9dee955cb7283be Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Wed, 29 Apr 2020 02:51:54 +0200 Subject: [PATCH] cleaning old lines --- scripts/install | 11 ----------- scripts/upgrade | 18 ------------------ 2 files changed, 29 deletions(-) diff --git a/scripts/install b/scripts/install index 1eb5c1f..e059abf 100644 --- a/scripts/install +++ b/scripts/install @@ -48,7 +48,6 @@ ynh_script_progression --message="Storing installation settings..." --time --wei ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -#ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= # Install dependency to convert tracks to a readable format for the browser @@ -108,16 +107,6 @@ ynh_app_setting_delete --app=$app --key=skipped_uris #================================================= ynh_script_progression --message="Configuring permissions..." --time --weight=1 -# if [ $is_public -eq 0 ] -# then # Remove the public access -# ynh_app_setting_delete $app skipped_uris -# fi -# # 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="/" -# fi # Make app public if necessary if [ $is_public -eq 1 ] then diff --git a/scripts/upgrade b/scripts/upgrade index 43c4393..17b65c0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -37,15 +37,6 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --time --weight=1 -# # Fix is_public as a boolean value -# if [ "$is_public" = "Yes" ]; then -# ynh_app_setting_set --app=$app --key=is_public --value=1 -# is_public=1 -# elif [ "$is_public" = "No" ]; then -# ynh_app_setting_set --app=$app --key=is_public --value=0 -# is_public=0 -# fi - # If final_path doesn't exist, create it if [ -z "$final_path" ]; then final_path=/var/www/$app @@ -207,15 +198,6 @@ chmod 755 $final_path -R #================================================= ynh_script_progression --message="Upgrading permissions configuration..." --time --weight=1 - - -# # 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="/" -# fi - # Create the visitors permission if needed if ! ynh_permission_exists --permission "visitors"; then ynh_permission_create --permission "visitors"