mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-05-11 09:55:19 +00:00
Update internal/machine/openrc/unit.go
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
parent
51f0251685
commit
1a12a26876
@ -67,7 +67,7 @@ func (s ServiceUnit) OverrideCmd(cmd string) error {
|
||||
cmd = strings.ReplaceAll(cmd, k3sbin+" ", "")
|
||||
envFile := filepath.Join(s.rootdir, fmt.Sprintf("/etc/rancher/k3s/%s.env", s.name))
|
||||
env := make(map[string]string)
|
||||
env["command_args"] = fmt.Sprintf(`"%s >>/var/log/%s.log 2>&1"`, cmd, s.name)
|
||||
env["command_args"] = fmt.Sprintf("%s >>/var/log/%s.log 2>&1", cmd, s.name)
|
||||
|
||||
return utils.WriteEnv(envFile, env)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user