From 25418ce14414ba73f5202082a2761eb4b533c8ba Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 24 Jan 2022 23:04:31 +0100 Subject: [PATCH] more cleanup --- scripts/upgrade | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3bcbfd6..7441a92 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,27 +64,6 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Ensuring downward compatibility..." -# 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 db_name doesn't exist, create it -if [ -z "$db_name" ]; then - db_name=$(ynh_sanitize_dbid --db_name=$app) - ynh_app_setting_set --app=$app --key=db_name --value=$db_name -fi - -# If final_path doesn't exist, create it -if [ -z "$final_path" ]; then - final_path=/var/www/$app - ynh_app_setting_set --app=$app --key=final_path --value=$final_path -fi - # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all