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"