mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-27 09:13:23 +00:00
Fix file permission
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
@ -85,7 +85,7 @@ func InitNetwork() (gocni.CNI, error) {
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user