From d2b935b85c239a8c86b1cf0d137ccb85ecf01daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Mon, 1 Nov 2021 19:55:38 +0100 Subject: [PATCH] Extension fix --- apps/snapshots.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/snapshots.go b/apps/snapshots.go index 743262e..4c00507 100644 --- a/apps/snapshots.go +++ b/apps/snapshots.go @@ -147,7 +147,7 @@ func (s *SnapshotProcessor) CreateSnapshot(appName string, labels []string) (str return snapshot.KeyName(s.IndexLabel), fmt.Errorf("saving metadata error: %v", err) } - tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, snapshot.KeyName(s.IndexLabel)+".zip") + tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, snapshot.KeyName(s.IndexLabel)+".tar.zst") err = os.Chdir(path.Join(s.AppsPath, appName)) if err != nil { @@ -186,7 +186,7 @@ func (s *SnapshotProcessor) CreateSnapshot(appName string, labels []string) (str // If you need a new app from existing snapshot just create it. // This restores only content on the disk, doesn't create the container. func (s *SnapshotProcessor) RestoreSnapshot(key string, newAppName string) error { - tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, key+".zip") + tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, key+".tar.zst") err := os.MkdirAll(path.Join(s.AppsPath, newAppName), 0755) if err != nil {