diff --git a/apps/snapshots.go b/apps/snapshots.go index a98258b..c14cf36 100644 --- a/apps/snapshots.go +++ b/apps/snapshots.go @@ -224,6 +224,12 @@ func (s *SnapshotProcessor) RestoreSnapshot(key string, newAppName string) error return fmt.Errorf("removing the archive error: %v", err) } + // 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) + } + return nil }