#!/bin/sh # # Determine whether this is a cluster machine or not by # exiting with 0 or 1, respectively CLUSTER= if [ -s /var/run/athena-clusterinfo.sh ]; then . /var/run/athena-clusterinfo.sh fi if [ "$CLUSTER" = "cluster" ]; then # Hesiod takes priority exit 0 elif machtype -vL | grep -q debathena-cluster; then exit 0 fi exit 1