summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-02-16 21:08:08 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-02-16 21:08:08 +0000
commit4c2b46f7e3dd1b92932ae04ba815405646ab9bb2 (patch)
tree4779da8f57e3f51c794c4f5eb8de3fa019a09f49
parentf5cd936e64dbf7926e034505ca90ef18a7d87aae (diff)
start-container-docker.sh: Fix docker cp invocation.
Use $DOCKER instead of docker to include the session host name. Change-Id: Ic0628ddbc151a3c1c87aa48604b6508484c7f96a
-rwxr-xr-xstart-container-docker.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh
index 75efc502..abebcd73 100755
--- a/start-container-docker.sh
+++ b/start-container-docker.sh
@@ -144,7 +144,7 @@ session_port=$($DOCKER port $session_id 22 | cut -d: -f 2)
# builds in TCWG lab. Update the docker container authorized_keys with
# a copy from the main host.
if [ "x`whoami`" = "xtcwg-buildslave" ]; then
- docker cp $HOME/.ssh/authorized_keys ${session_id}:/home/tcwg-buildslave/.ssh/authorized_keys
+ $DOCKER cp $HOME/.ssh/authorized_keys ${session_id}:/home/tcwg-buildslave/.ssh/authorized_keys
# Start ssh-agent locally and add the right private key to it, but
# only if it is not already running. Indeed, even if we want to