diff --git a/apps/snapshots.go b/apps/snapshots.go index c14cf36..2e52890 100644 --- a/apps/snapshots.go +++ b/apps/snapshots.go @@ -226,8 +226,8 @@ func (s *SnapshotProcessor) RestoreSnapshot(key string, newAppName string) error // remove .chowned file to tell the container to setup ownership of the files again err = os.Remove("./.chowned") - if err != nil { - return fmt.Errorf("removing .chowned error: %v", err) + if err != nil && !strings.Contains(err.Error(), "no such file or directory") { + return fmt.Errorf("removing error: %v", err) } return nil