mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-20 03:36:41 +00:00
Modification to unpacking volume backup
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
72e739f15e
commit
e3c1c333f0
@ -434,7 +434,7 @@ module.exports = class DeviceState extends EventEmitter
|
|||||||
.then ->
|
.then ->
|
||||||
mkdirp(backupPath)
|
mkdirp(backupPath)
|
||||||
.then ->
|
.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 ->
|
.then ->
|
||||||
fs.readdirAsync(backupPath)
|
fs.readdirAsync(backupPath)
|
||||||
.then (dirContents) =>
|
.then (dirContents) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user