Skip to content
Snippets Groups Projects
Commit d1049b70 authored by Tim Emiola's avatar Tim Emiola
Browse files

Merge pull request #520 from donnadionne/docker

Setting default ssh directory in the case of test runs running as root.
parents d853baac 6fd5a35e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment