Merge pull request #1057 from balena-io/migrate-unpack

modification to unpacking volume backup
This commit is contained in:
CameronDiver 2019-09-02 16:09:24 +01:00 committed by GitHub
commit f3f4e2d3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) =>