From 004f5d6764e9e3bae2df9c0405d01cfa399e29fc Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 1 Jun 2019 06:55:42 +0200 Subject: [PATCH] backup config before upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3e3b9c8..1986a42 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -153,6 +153,7 @@ popd #================================================= ynh_print_info --message="Modifying config file..." +ynh_backup_if_checksum_is_different --file="$final_path/.env" cp "../conf/.env" "$final_path/.env" if [ "$path_url" == "/" ] @@ -172,7 +173,6 @@ ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" #================================================= ynh_print_info --message="Storing the config file checksum..." -ynh_backup_if_checksum_is_different --file="$final_path/.env" # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="$final_path/.env"