From ccf84fef1dbcb49155bf1f5acab58336ed0ed604 Mon Sep 17 00:00:00 2001 From: simatec Date: Mon, 26 Aug 2024 14:47:22 +0200 Subject: [PATCH] (simatec) Fix Zigbee2MQTT Backup --- README.md | 1 + lib/scripts/34-zigbee2mqtt.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 35834f68..e321fa89 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ When you allow iobroker GmbH to collect diagnostic data, then also your installa ## Changelog ### **WORK IN PROGRESS** * (simatec) Fix Onedrive Notification +* (simatec) Fix Zigbee2MQTT Backup ### 3.0.20 (2024-08-22) * (simatec) Responsive Design for Tab added diff --git a/lib/scripts/34-zigbee2mqtt.js b/lib/scripts/34-zigbee2mqtt.js index b226cb18..48de13c5 100644 --- a/lib/scripts/34-zigbee2mqtt.js +++ b/lib/scripts/34-zigbee2mqtt.js @@ -65,7 +65,7 @@ async function command(options, log, callback) { try { await tmpCopy(pth, tmpDir, log); - await compressBackupFile(fileName, tmpDir, log, callback); + await compressBackupFile(options, fileName, tmpDir, log, callback); } catch (err) { clearInterval(timer); options.context.errors.zigbee2mqtt = err.toString(); @@ -133,7 +133,7 @@ async function tmpCopy(pth, tmpDir, log) { }); } -async function compressBackupFile(fileName, tmpDir, log, callback) { +async function compressBackupFile(options, fileName, tmpDir, log, callback) { return new Promise(async (resolve, reject) => { const compress = require('../targz').compress;