diff --git a/init.sh b/init.sh index 88bc21b..6079f8f 100755 --- a/init.sh +++ b/init.sh @@ -157,12 +157,11 @@ if [ -f $WA_REPO/node_type.sh ]; then source $WA_REPO/node_type.sh else echo " " - echo -n "init as xmaster? type yes: " - read -r init_as_xmaster + echo -n "init as master? type yes: " + read -r init_as_master - echo "init as master set to $init_as_xmaster" - if [ "$init_as_xmaster" = "yes" ]; then + if [ "$init_as_master" = "yes" ]; then echo "node type set to master" echo -n "export NODE_TYPE=master" | tee $WA_REPO/node_type.sh NODE_TYPE=master @@ -177,10 +176,10 @@ fi echo " " echo -n "ready to set-up K8s? type yes: " read -r ready_to_setup_k8s + if [ "$ready_to_setup_k8s" = "yes" ]; then - - if [ "$NODE_TYPE" == "master" ]; then + if [ "$NODE_TYPE" = "master" ]; then echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>" echo "initializing K8s Master Set-Up" source $WA_REPO/shared_resources_k8s/k8s/setup_master.sh