fix: isolate trans ssh bootstrap
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@
|
||||
set -eu
|
||||
|
||||
repo=${UNIDESK_TRAN_REPO_ROOT:-/root/unidesk}
|
||||
if [ ! -f "$repo/scripts/cli.ts" ]; then
|
||||
if [ ! -f "$repo/scripts/ssh-cli.ts" ]; then
|
||||
self_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
repo=$(CDPATH= cd -- "$self_dir/.." && pwd)
|
||||
fi
|
||||
@@ -49,8 +49,8 @@ if [ -n "${CODE_QUEUE_SERVICE_ROLE:-}" ] || [ -n "${CODE_QUEUE_INSTANCE_ID:-}" ]
|
||||
fi
|
||||
|
||||
if [ "$runner_env" = 1 ] && [ -n "$host" ] && [ "${UNIDESK_TRAN_LOCAL:-}" != "1" ]; then
|
||||
bun "$repo/scripts/cli.ts" --main-server-ip "$host" ssh "$@"
|
||||
bun "$repo/scripts/ssh-cli.ts" --main-server-ip "$host" ssh "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
bun "$repo/scripts/cli.ts" ssh "$@"
|
||||
bun "$repo/scripts/ssh-cli.ts" ssh "$@"
|
||||
|
||||
Reference in New Issue
Block a user