Extension fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adam Štrauch 2021-11-01 19:55:38 +01:00
parent 12c2b14b6f
commit d2b935b85c
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -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) 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)) err = os.Chdir(path.Join(s.AppsPath, appName))
if err != nil { 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. // If you need a new app from existing snapshot just create it.
// This restores only content on the disk, doesn't create the container. // This restores only content on the disk, doesn't create the container.
func (s *SnapshotProcessor) RestoreSnapshot(key string, newAppName string) error { 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) err := os.MkdirAll(path.Join(s.AppsPath, newAppName), 0755)
if err != nil { if err != nil {