Modification to unpacking volume backup

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Thomas 2019-08-09 10:33:11 +02:00 committed by Cameron Diver
parent 72e739f15e
commit e3c1c333f0
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

@ -434,7 +434,7 @@ module.exports = class DeviceState extends EventEmitter
.then ->
mkdirp(backupPath)
.then ->
execAsync("tar -xzf backup.tgz -C #{backupPath} .", cwd: path.join(constants.rootMountPoint, 'mnt/data'))
execAsync("tar -xzf backup.tgz -C #{backupPath}", cwd: path.join(constants.rootMountPoint, 'mnt/data'))
.then ->
fs.readdirAsync(backupPath)
.then (dirContents) =>