Fix file permission

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd) 2025-02-18 21:17:07 +00:00
parent 7ad5c17e7c
commit e2758be25e

View File

@ -85,7 +85,7 @@ func InitNetwork() (gocni.CNI, error) {
} }
netConfig := path.Join(CNIConfDir, defaultCNIConfFilename) netConfig := path.Join(CNIConfDir, defaultCNIConfFilename)
if err := os.WriteFile(netConfig, []byte(defaultCNIConf), 644); err != nil { if err := os.WriteFile(netConfig, []byte(defaultCNIConf), 0644); err != nil {
return nil, fmt.Errorf("cannot write network config: %s", defaultCNIConfFilename) return nil, fmt.Errorf("cannot write network config: %s", defaultCNIConfFilename)
} }