From 6a3ee973fda98ede2a1edb2871d51475b6812f82 Mon Sep 17 00:00:00 2001 From: matthewpendrey Date: Wed, 14 Oct 2020 14:53:40 +0100 Subject: [PATCH] install script improvements --- install/install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install/install.sh b/install/install.sh index 23f3ae6e..98e4cfdc 100755 --- a/install/install.sh +++ b/install/install.sh @@ -1,4 +1,4 @@ -# Usage: install.sh e.g. install.sh 1.0.8 leave it blank to install latest ci build +# Usage: install.sh e.g. install.sh 1.0.8 leave it blank to install latest ci build VERSION=$1 DOCKERREPO="ettec/opentp:" TAG=-$VERSION @@ -12,8 +12,10 @@ else fi # If installing on a non microk8s cluster comment out the three lines below -USINGMICROK8S=$2 -if [ "$USINGMICROK8S" = "true" ]; then +USINGOWNCLUSTER=$2 +if [ "$USINGOWNCLUSTER" = "true" ]; then + echo installing into kubernetes cluster using kubectl current context +else echo installing into MicroK8s cluster shopt -s expand_aliases alias kubectl=microk8s.kubectl