aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gce_setup/grpc_docker.sh
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-16 11:12:28 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-16 11:12:28 -0800
commitacd62293044746e2203911990721ecfd502938f8 (patch)
tree2773f431160f3c3814230b16b2294563ec45182d /tools/gce_setup/grpc_docker.sh
parente3018e6f7d86cea35b2bc7f76e0b722b1ed7851b (diff)
parent361c5be0561bbd27a40b03eb215ab00f6900fd1a (diff)
Merge github.com:grpc/grpc into sopb
Conflicts: Makefile templates/Makefile.template
Diffstat (limited to 'tools/gce_setup/grpc_docker.sh')
-rwxr-xr-xtools/gce_setup/grpc_docker.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gce_setup/grpc_docker.sh b/tools/gce_setup/grpc_docker.sh
index 2e02653864..1c38582cb8 100755
--- a/tools/gce_setup/grpc_docker.sh
+++ b/tools/gce_setup/grpc_docker.sh
@@ -24,6 +24,10 @@
# Allows gcloud ssh commands to run on freshly started docker instances.
_grpc_ensure_gcloud_ssh() {
local default_key_file="$HOME/.ssh/google_compute_engine"
+ if [ "$HOME" == "/" ]
+ then
+ default_key_file="/root/.ssh/google_compute_engine"
+ fi
[ -f $default_key_file ] || {
ssh-keygen -f $default_key_file -N '' > /dev/null || {
echo "could not precreate $default_key_file" 1>&2