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:
parent
4508d11401
commit
253392a1a6
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user