mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-24 00:25:15 -04:00
[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:
committed by
Bartosz Cichocki
parent
ca7de85fef
commit
424f5eaa12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user