Fix removing of .chowned
This commit is contained in:
parent
564e9ec4f1
commit
66476df2bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user