fix: Prefix tmp directory for agent download with "coder" (#1038)

This makes it easier to find the temporary dir for the coder binary.
This commit is contained in:
Kyle Carberry
2022-04-15 15:30:37 -05:00
committed by GitHub
parent 148e7cddd3
commit 104a3c6b9c
+2 -2
View File
@@ -23,7 +23,7 @@ Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "agent" -PassThru
"amd64": `
#!/usr/bin/env sh
set -eu pipefail
export BINARY_LOCATION=$(mktemp -d)/coder
export BINARY_LOCATION=$(mktemp -d -t tmp.coderXXXXX)/coder
curl -fsSL ${ACCESS_URL}bin/coder-linux-amd64 -o $BINARY_LOCATION
chmod +x $BINARY_LOCATION
export CODER_AUTH="${AUTH_TYPE}"
@@ -35,7 +35,7 @@ exec $BINARY_LOCATION agent
"amd64": `
#!/usr/bin/env sh
set -eu pipefail
export BINARY_LOCATION=$(mktemp -d)/coder
export BINARY_LOCATION=$(mktemp -d -t tmp.coderXXXXX)/coder
curl -fsSL ${ACCESS_URL}bin/coder-darwin-amd64 -o $BINARY_LOCATION
chmod +x $BINARY_LOCATION
export CODER_AUTH="${AUTH_TYPE}"