#!/bin/sh
 
WEBSERVICE='/opt/webservice'

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

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

if [ "$has_sg" -eq "1" ] && [ "$is_quorum" -eq "1" ]; then
    echo "is SG on Quorum"
    exit 1
else
    echo "is NOT SG on Quorum"
    exit 0
fi
