Commit f871697b authored by Faho Shubladze's avatar Faho Shubladze
Browse files

Fixed docker plugin config file permissions

cr: https://code.amazon.com/reviews/CR-52913849
parent 2c58a07c
...@@ -45,8 +45,8 @@ func (DepWindows) IsPlatformNanoServer(log log.T) (bool, error) { ...@@ -45,8 +45,8 @@ func (DepWindows) IsPlatformNanoServer(log log.T) (bool, error) {
func (DepWindows) SetDaemonConfig(daemonConfigPath string, daemonConfigContent string) (err error) { func (DepWindows) SetDaemonConfig(daemonConfigPath string, daemonConfigContent string) (err error) {
if _, err := os.Stat(daemonConfigPath); os.IsNotExist(err) { if _, err := os.Stat(daemonConfigPath); os.IsNotExist(err) {
os.MkdirAll(filepath.Dir(daemonConfigPath), 744) os.MkdirAll(filepath.Dir(daemonConfigPath), 0744)
err := ioutil.WriteFile(daemonConfigPath, []byte(daemonConfigContent), 0644) err := ioutil.WriteFile(daemonConfigPath, []byte(daemonConfigContent), 0600)
if err != nil { if err != nil {
return err return err
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment