mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: allow the BINARY_DIR to be configured in the agent script (#6567)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user