diff --git a/model/model_puller.go b/model/model_puller.go index b3a7dd9b2..0f628f489 100644 --- a/model/model_puller.go +++ b/model/model_puller.go @@ -121,6 +121,11 @@ func (m *Model) pullFile(name string) error { return err } + err = os.Chmod(tmpFilename, os.FileMode(globalFile.Flags&0777)) + if err != nil { + return err + } + err = os.Rename(tmpFilename, filename) if err != nil { return err