From b9d5c9e75ca8c2f911249eda803af322f5ff8ebb Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 25 Oct 2017 21:34:19 +0530 Subject: [PATCH] fixed the error in upgrade script for not creating final_path --- scripts/upgrade | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2282208..cc40e02 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -40,8 +40,7 @@ if [ -z $db_name ]; then db_name=$(ynh_sanitize_dbid $app) ynh_app_setting_set $app db_name $db_name fi -#move the final_path to final_path.old -sudo mv ${final_path} ${final_path}.old + # If final_path doesn't exist, create it if [ -z $final_path ]; then @@ -77,6 +76,9 @@ path_url=$(ynh_normalize_url_path $path_url) # Download, check integrity, uncompress and patch the source from app.src #ynh_setup_source "$final_path" +#move the final_path to final_path.old +sudo mv ${final_path} ${final_path}.old +sudo mkdir -p $final_path ynh_setup_source "$final_path" #copy cofig.php from final_path.old to final_path