Volume preparation fix
All checks were successful
Unittests / unittests (push) Successful in 14s
Unittests / deploy-dev (push) Successful in 1m9s

This commit is contained in:
Adam Štrauch 2023-12-13 17:40:28 +01:00
parent 6d62b200a4
commit 036587a77a
Signed by: cx
GPG Key ID: 7262DAFE292BCE20

View File

@ -243,7 +243,7 @@ func (p *Processor) volumeFromURL(url string, container *docker.Container) error
log.Printf("%s: extracting archive\n", container.App.Name) log.Printf("%s: extracting archive\n", container.App.Name)
// Call tar xf archive.tar.zst -C /volume // Call tar xf archive.tar.zst -C /volume
cmd := exec.Command("tar", "-I", "zstd", "-xf", "archive.tar.zst", "-C", volumePath) cmd := exec.Command("tar", "-xf", "archive.tar.zst", "-C", volumePath)
err = cmd.Run() err = cmd.Run()
if err != nil { if err != nil {
log.Printf("%s: failed to extract archive: %v", container.App.Name, err) log.Printf("%s: failed to extract archive: %v", container.App.Name, err)