Skip to content

Commit

Permalink
Changes [build image]
Browse files Browse the repository at this point in the history
  • Loading branch information
Electroid committed Nov 14, 2024
1 parent 224c002 commit 190ef02
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions scripts/agent.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@ export async function doAgent(action) {
return path;
}

let homePath, cachePath, logsPath, agentLogPath, socketPath, pidPath;
let homePath, cachePath, logsPath, agentLogPath, pidPath;
if (isWindows) {
throw new Error("TODO: Windows");
} else {
const varPath = join("/", "var");
homePath = getPath(varPath, "lib", "buildkite-agent", { mkdir: true });
cachePath = getPath(varPath, "cache", "buildkite-agent", { mkdir: true });
logsPath = getPath(varPath, "log", "buildkite-agent", { mkdir: true });
agentLogPath = getPath(logsPath, "buildkite-agent.log", { touch: true });
socketPath = getPath(varPath, "run", "buildkite-agent", "buildkite-agent.sock", { mkdir: true });
pidPath = getPath(varPath, "run", "buildkite-agent", "buildkite-agent.pid", { touch: true });
homePath = "/var/lib/buildkite-agent";
cachePath = "/var/cache/buildkite-agent";
logsPath = "/var/log/buildkite-agent";
agentLogPath = join(logsPath, "buildkite-agent.log");
pidPath = join(logsPath, "buildkite-agent.pid");
}

function escape(string) {
Expand Down

0 comments on commit 190ef02

Please sign in to comment.