Skip to content

Commit

Permalink
fix: agent root directory missing /
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Oct 24, 2024
1 parent ce61818 commit a3ef9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func ApplyRuntimeConfig() (err error) {
RuntimeConfig.PIDFile = strings.ReplaceAll(RuntimeConfig.PIDFile, "/tmp/", prefix)
log.Printf("Agent root: %s", RuntimeConfig.AgentRoot)
} else {
prefix := os.TempDir()
prefix := os.TempDir() + "/" // /tmp/ on Linux and macOS, C:\Users\username\AppData\Local\Temp\ on Windows
RuntimeConfig.AgentRoot = fmt.Sprintf("%s/%s", prefix, agent_root_base)
RuntimeConfig.UtilsPath = strings.ReplaceAll(RuntimeConfig.UtilsPath, "/tmp/", prefix)
RuntimeConfig.SocketName = strings.ReplaceAll(RuntimeConfig.SocketName, "/tmp/", prefix)
Expand Down

0 comments on commit a3ef9b4

Please sign in to comment.