From 4f2ec313ce18f5fc7b9421ff7efd03f910fa2f6b Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 15 Feb 2019 19:57:17 +0100 Subject: [PATCH] Remove useless copy of final_path during upgrade --- scripts/upgrade | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f8be406..3205fbd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -75,24 +75,12 @@ path_url=$(ynh_normalize_url_path $path_url) #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= - -# Move old app dir -mv "$final_path" "$final_path.old" +ynh_print_info "Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" -mkdir -p "$final_path"/sessions -# restore data -cp -a "$final_path.old/data" "$final_path" - -# restore plugins -if [ -e "$final_path.old/plugins" ] -then - cp -a "$final_path.old/plugins" "$final_path" -fi -# delete temp directory -ynh_secure_remove "$final_path.old" +mkdir -p $final_path/sessions/ #================================================= # NGINX CONFIGURATION