From 011e68d1b3c9f6fd8c416f4b2d4fcdf3eb86144b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 1 Jul 2021 22:23:25 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index f50cde2..1cd65ce 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -162,6 +162,10 @@ ynh_script_progression --message="Updating a config file..." config_file="$final_path/.config/syncthing/config.xml" +ynh_backup_if_checksum_is_different --file="$config_file" +# Recalculate and store the checksum of the file for the next upgrade. +ynh_store_file_checksum --file="$config_file" + #ynh_add_config --template="../conf/config.xml" --destination="$config_file" chmod 400 "$config_file"