1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-10 11:13:44 +00:00

Set 644 on cloud-config

This commit is contained in:
David Lewis 2018-07-07 08:03:40 -07:00 committed by Alena Prokharchyk
parent 44d921b114
commit ecd92ceff6

View File

@ -41,7 +41,7 @@ func doDeployConfigFile(ctx context.Context, host *hosts.Host, cloudConfig, alpi
Cmd: []string{ Cmd: []string{
"sh", "sh",
"-c", "-c",
fmt.Sprintf("t=$(mktemp); echo -e \"$%s\" > $t && mv $t %s", CloudConfigEnv, CloudConfigPath), fmt.Sprintf("t=$(mktemp); echo -e \"$%s\" > $t && mv $t %s && chmod 644 %s", CloudConfigEnv, CloudConfigPath, CloudConfigPath),
}, },
Env: containerEnv, Env: containerEnv,
} }