Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
violethaze74
amazon-ssm-agent
Commits
f871697b
Commit
f871697b
authored
Jun 29, 2021
by
Faho Shubladze
Browse files
Fixed docker plugin config file permissions
cr:
https://code.amazon.com/reviews/CR-52913849
parent
2c58a07c
Changes
1
Hide whitespace changes
Inline
Side-by-side
agent/plugins/configurecontainers/windowscontainerutil/dep_windows.go
View file @
f871697b
...
...
@@ -45,8 +45,8 @@ func (DepWindows) IsPlatformNanoServer(log log.T) (bool, error) {
func
(
DepWindows
)
SetDaemonConfig
(
daemonConfigPath
string
,
daemonConfigContent
string
)
(
err
error
)
{
if
_
,
err
:=
os
.
Stat
(
daemonConfigPath
);
os
.
IsNotExist
(
err
)
{
os
.
MkdirAll
(
filepath
.
Dir
(
daemonConfigPath
),
744
)
err
:=
ioutil
.
WriteFile
(
daemonConfigPath
,
[]
byte
(
daemonConfigContent
),
06
44
)
os
.
MkdirAll
(
filepath
.
Dir
(
daemonConfigPath
),
0
744
)
err
:=
ioutil
.
WriteFile
(
daemonConfigPath
,
[]
byte
(
daemonConfigContent
),
06
00
)
if
err
!=
nil
{
return
err
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment