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
|
// remove .chowned file to tell the container to setup ownership of the files again
|
||||||
err = os.Remove("./.chowned")
|
err = os.Remove("./.chowned")
|
||||||
if err != nil {
|
if err != nil && !strings.Contains(err.Error(), "no such file or directory") {
|
||||||
return fmt.Errorf("removing .chowned error: %v", err)
|
return fmt.Errorf("removing error: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user