#!/bin/bash # PRIMARY_NODE=${PRIMARY_NODE:-} echo PRIMARY_NODE: $PRIMARY_NODE if [ "$PRIMARY_NODE" = "true" ]; then exit 0 else exit 1 fi