1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-16 08:25:51 +00:00

Always write cloud config

This commit is contained in:
David Lewis 2018-04-20 16:55:37 -07:00 committed by Darren Shepherd
parent 4508d11401
commit 253392a1a6

View File

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