From c01c7859f6c4d3122b341611de55a40ef197eef8 Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 01:42:48 +0200 Subject: [PATCH 1/8] Update compile --- bin/compile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/compile b/bin/compile index 466a87c..3c6f3b9 100644 --- a/bin/compile +++ b/bin/compile @@ -20,6 +20,8 @@ if [ "$ssh_key" != "" ]; then mkdir "$1/.ssh" ln -s "$1/.ssh" "$HOME/.ssh" echo "$ssh_key" | base64 --decode > "$HOME/.ssh/id_rsa" + + echo "--> $HOME/.ssh/id_rsa" IFS=',' read -ra HOST <<< "$ssh_hosts" for i in "${HOST[@]}"; do From 82e4ccbbb159e92da24cddeb24154bd608d9b6c3 Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 01:47:50 +0200 Subject: [PATCH 2/8] Update compile --- bin/compile | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/compile b/bin/compile index 3c6f3b9..2386f4c 100644 --- a/bin/compile +++ b/bin/compile @@ -25,6 +25,7 @@ if [ "$ssh_key" != "" ]; then IFS=',' read -ra HOST <<< "$ssh_hosts" for i in "${HOST[@]}"; do + echo "--> $i" ssh -oStrictHostKeyChecking=no -T $i 2>&1 | indent done From d661548b93e2e88b7563b01094228809b4d426d0 Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 01:50:07 +0200 Subject: [PATCH 3/8] Update compile --- bin/compile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 2386f4c..07ad9e7 100644 --- a/bin/compile +++ b/bin/compile @@ -22,7 +22,8 @@ if [ "$ssh_key" != "" ]; then echo "$ssh_key" | base64 --decode > "$HOME/.ssh/id_rsa" echo "--> $HOME/.ssh/id_rsa" - + + echo "--> $SSH_HOSTS" IFS=',' read -ra HOST <<< "$ssh_hosts" for i in "${HOST[@]}"; do echo "--> $i" From 85078ddd4b91bf9ae3056ba7ee176d59322d08d7 Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 01:55:26 +0200 Subject: [PATCH 4/8] Update compile --- bin/compile | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/compile b/bin/compile index 07ad9e7..d628f44 100644 --- a/bin/compile +++ b/bin/compile @@ -10,6 +10,7 @@ function indent() { ENV_DIR=${3:-} ssh_key="$(cat $ENV_DIR/SSH_KEY)" +ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)" ssh_hosts=${SSH_HOSTS:-"git@github.com"} if [ "$ssh_key" != "" ]; then From ecdbd80bbe0a5bff3c4bc099434fab790200f847 Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 01:56:51 +0200 Subject: [PATCH 5/8] Update compile --- bin/compile | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/compile b/bin/compile index d628f44..6809ea8 100644 --- a/bin/compile +++ b/bin/compile @@ -9,6 +9,7 @@ function indent() { } ENV_DIR=${3:-} +ls $ENV_DIR ssh_key="$(cat $ENV_DIR/SSH_KEY)" ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)" ssh_hosts=${SSH_HOSTS:-"git@github.com"} From a050d3cfb07718195a958379b4a641cf7d6d7618 Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 01:58:14 +0200 Subject: [PATCH 6/8] Update compile --- bin/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 6809ea8..d76c37c 100644 --- a/bin/compile +++ b/bin/compile @@ -12,7 +12,7 @@ ENV_DIR=${3:-} ls $ENV_DIR ssh_key="$(cat $ENV_DIR/SSH_KEY)" ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)" -ssh_hosts=${SSH_HOSTS:-"git@github.com"} +#ssh_hosts=${SSH_HOSTS:-"git@github.com"} if [ "$ssh_key" != "" ]; then echo "-----> Running SSH private key setup" From d037f577162e2aa1806908dfa3ea2a4fa0338faf Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 02:00:48 +0200 Subject: [PATCH 7/8] Update compile --- bin/compile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/compile b/bin/compile index d76c37c..c7e9513 100644 --- a/bin/compile +++ b/bin/compile @@ -12,7 +12,7 @@ ENV_DIR=${3:-} ls $ENV_DIR ssh_key="$(cat $ENV_DIR/SSH_KEY)" ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)" -#ssh_hosts=${SSH_HOSTS:-"git@github.com"} +ssh_hosts=${ssh_hosts:-"git@github.com"} if [ "$ssh_key" != "" ]; then echo "-----> Running SSH private key setup" @@ -23,9 +23,7 @@ if [ "$ssh_key" != "" ]; then ln -s "$1/.ssh" "$HOME/.ssh" echo "$ssh_key" | base64 --decode > "$HOME/.ssh/id_rsa" - echo "--> $HOME/.ssh/id_rsa" - - echo "--> $SSH_HOSTS" + echo "--> $ssh_hosts" IFS=',' read -ra HOST <<< "$ssh_hosts" for i in "${HOST[@]}"; do echo "--> $i" From e5a113acfdb147b9b0f9251281e5d532ac126ec2 Mon Sep 17 00:00:00 2001 From: Andreas Heissenberger Date: Sat, 4 Jun 2016 02:03:50 +0200 Subject: [PATCH 8/8] fix not using value from SSH_HOSTS config var --- bin/compile | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/compile b/bin/compile index c7e9513..69db1d5 100644 --- a/bin/compile +++ b/bin/compile @@ -9,7 +9,6 @@ function indent() { } ENV_DIR=${3:-} -ls $ENV_DIR ssh_key="$(cat $ENV_DIR/SSH_KEY)" ssh_hosts="$(cat $ENV_DIR/SSH_HOSTS)" ssh_hosts=${ssh_hosts:-"git@github.com"}