#!/bin/sh

WEBSERVICE='/opt/webservice'

${WEBSERVICE}/scripts/has_quorum 2>&1 >/dev/null
has_quorum=$?

if [ "$has_quorum" -eq "1" ]; then
    nodeQ=`${WEBSERVICE}/scripts/gethaipsetupentry.sh system.nameQuorumNode`
    myHostname=`hostname`
    if [ "${nodeQ}" = "${myHostname}" ]; then
        echo "is Quorum"
        exit 1
    else
        echo "is NOT Quorum"
        exit 0
    fi
else
    echo "Deployment is not sep. Duplex, therefore NOT Quorum"
    exit 0
fi



