From 0d951c1e1d37c8bbd3a7692d4e4fa24a7a9f2a9f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 1 Jun 2019 07:13:00 +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 aa7c409..c6e2caf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,6 +111,7 @@ ynh_setup_source "$final_path" # MODIFY A CONFIG FILE #================================================= +ynh_backup_if_checksum_is_different "$final_path/config/production.yaml" cp ../conf/production.yaml "$final_path/config/production.yaml" ynh_replace_string "__domain__" "$domain" "$final_path/config/production.yaml" ynh_replace_string "__db_name__" "$app" "$final_path/config/production.yaml" @@ -172,7 +173,6 @@ pushd "$final_path" yarn install --production --pure-lockfile popd -ynh_backup_if_checksum_is_different "$final_path/config/production.yaml" # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum "$final_path/config/production.yaml"