[MOS-855] Restore process update

Fixed issues with restoring from legacy backups
and cases when the database set fetched from backup package
is different than the system one.
This commit is contained in:
Mateusz Piesta
2023-01-03 07:48:31 +01:00
committed by Bartosz Cichocki
parent ca7de85fef
commit 424f5eaa12
12 changed files with 145 additions and 85 deletions

View File

@@ -37,7 +37,7 @@ local function generate_report_file(boot_reason_str, success, message)
local body = string.format(
"{\"version\": \"%s\",\"branch\": \"%s\",\"revision\": \"%s\",\"operation\": \"%s\",\"successful\": %s,\"message\": \"%s\"}",
rec.version(), rec.branch(), rec.revision(), boot_reason_str, tostring(success), message)
local fd = io.open(file_path, 'w')
local fd = assert(io.open(file_path, 'w'))
fd:write(body)
fd:close()
end