From 5abfbc1cf75ae7e9544308b6d15c58c86c83120e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 22 Jul 2021 23:31:33 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c2acd07..e11ea7b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,12 +94,12 @@ then mv "$final_path" "$final_path.old" ynh_setup_source "$final_path" - mv "$final_path"/galette/* "$final_path"/ - ynh_secure_remove "$final_path"/tests + #ynh_secure_remove "$final_path"/tests # when running automatic tests, there is no config.inc.php - if [ -e "$final_path.old/config/config.inc.php" ]; then - cp "$final_path.old/config/config.inc.php" "$final_path/config/config.inc.php" + if [ -e "$final_path.old/galette/config/config.inc.php" ]; then + cp "$final_path.old/galette/config/config.inc.php" "$final_path/galette/config/config.inc.php" + cp "$final_path.old/galette/data" "$final_path/galette/data" fi # delete temp directory