mirror of https://github.com/coder/coder.git
fix: allow the `BINARY_DIR` to be configured in the agent script (#6567)
This commit is contained in:
parent
37c859ec4c
commit
7fa6483d84
|
@ -8,7 +8,7 @@ waitonexit() {
|
|||
sleep 86400
|
||||
}
|
||||
trap waitonexit EXIT
|
||||
BINARY_DIR=$(mktemp -d -t coder.XXXXXX)
|
||||
BINARY_DIR="${BINARY_DIR:-$(mktemp -d -t coder.XXXXXX)}"
|
||||
BINARY_NAME=coder
|
||||
BINARY_URL=${ACCESS_URL}bin/coder-linux-${ARCH}
|
||||
cd "$BINARY_DIR"
|
||||
|
|
Loading…
Reference in New Issue