diff --git a/scripts/upgrade b/scripts/upgrade index 0f0c794..b97cab1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,20 +45,8 @@ ynh_abort_if_errors #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= -ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 -# 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 - - ynh_app_setting_delete --app=$app --key=is_public -fi +upgrade_type=$(ynh_check_app_version_changed) #================================================= # CREATE DEDICATED USER