blob: 77fc65fe39a3bdd8b3f0f33f17285898ece8e802 [file] [log] [blame]
Neha Jainde45c682018-04-05 11:51:29 -04001#!/bin/bash
2
3OOM_HOME=${OOM_HOME:-$HOME}
4
Trevor Tait567ff1e2018-05-01 16:20:54 -04005IS_PRIMARY_CLUSTER=`awk '/isPrimaryCluster/ {print $2}' ${OOM_HOME}/oom/kubernetes/sdnc/values.yaml`
Neha Jainde45c682018-04-05 11:51:29 -04006
7if [ "$?" -eq "2" ]; then
8 echo "Make sure you are ubuntu user." >&2
9fi
10
11case $IS_PRIMARY_CLUSTER in
12true|false)
13 echo $IS_PRIMARY_CLUSTER
14 ;;
15*)
16 echo "NOT CLUSTERED"
17 exit 1
18 ;;
19esac