From 9888571715e4890f9071e04ddea43fa643a85659 Mon Sep 17 00:00:00 2001 From: Ivan Font Date: Thu, 26 Jan 2017 16:23:42 -0800 Subject: [PATCH] Updated shebang in scripts for better portability --- scripts/bootstrap-controllers.sh | 2 +- scripts/bootstrap-etcd.sh | 2 +- scripts/bootstrap-workers.sh | 2 +- scripts/create-routes.sh | 2 +- scripts/deploy-dns.sh | 2 +- scripts/kube-down.sh | 2 +- scripts/kube-up.sh | 2 +- scripts/kubectl-remote-access.sh | 2 +- scripts/setup-ca.sh | 2 +- scripts/smoke-test.sh | 2 +- scripts/start-infra-gcp.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/bootstrap-controllers.sh b/scripts/bootstrap-controllers.sh index a221eb4..b994b78 100755 --- a/scripts/bootstrap-controllers.sh +++ b/scripts/bootstrap-controllers.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then diff --git a/scripts/bootstrap-etcd.sh b/scripts/bootstrap-etcd.sh index 329eece..9c63306 100755 --- a/scripts/bootstrap-etcd.sh +++ b/scripts/bootstrap-etcd.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then diff --git a/scripts/bootstrap-workers.sh b/scripts/bootstrap-workers.sh index c50fe13..64492e7 100755 --- a/scripts/bootstrap-workers.sh +++ b/scripts/bootstrap-workers.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x DOCKER_VERSION=1.12.5 diff --git a/scripts/create-routes.sh b/scripts/create-routes.sh index 79b99f5..42f7826 100755 --- a/scripts/create-routes.sh +++ b/scripts/create-routes.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then diff --git a/scripts/deploy-dns.sh b/scripts/deploy-dns.sh index 517b3e9..f5f7213 100755 --- a/scripts/deploy-dns.sh +++ b/scripts/deploy-dns.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-the-hard-way/master/services/kubedns.yaml diff --git a/scripts/kube-down.sh b/scripts/kube-down.sh index 74be874..256f02a 100755 --- a/scripts/kube-down.sh +++ b/scripts/kube-down.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} ]]; then diff --git a/scripts/kube-up.sh b/scripts/kube-up.sh index eb28cb8..eaccf46 100755 --- a/scripts/kube-up.sh +++ b/scripts/kube-up.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then diff --git a/scripts/kubectl-remote-access.sh b/scripts/kubectl-remote-access.sh index bf1c9aa..55ad9a1 100755 --- a/scripts/kubectl-remote-access.sh +++ b/scripts/kubectl-remote-access.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x KUBERNETES_PUBLIC_ADDRESS=$(gcloud compute addresses describe kubernetes \ diff --git a/scripts/setup-ca.sh b/scripts/setup-ca.sh index 54923ff..a0c4b6a 100755 --- a/scripts/setup-ca.sh +++ b/scripts/setup-ca.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then diff --git a/scripts/smoke-test.sh b/scripts/smoke-test.sh index 7c4f30b..3265848 100755 --- a/scripts/smoke-test.sh +++ b/scripts/smoke-test.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x kubectl run nginx --image=nginx --port=80 --replicas=3 diff --git a/scripts/start-infra-gcp.sh b/scripts/start-infra-gcp.sh index c19c634..f4f4157 100755 --- a/scripts/start-infra-gcp.sh +++ b/scripts/start-infra-gcp.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash set -x if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then