#!/bin/sh

. /opt/webservice/install/deployment.properties

# test comment

#for calls with --web argument redurect stdout to stderr so that it lands in apache error.log - to be used by cgi scripts
[[ "x$1" =~ "web" ]] && exec 1>&2

#for calls with --quiet suppress all output
[[ "x$1" =~ "quiet" ]] && {
    exec 1>/dev/null
    exec 2>/dev/null
}

deployment=`/opt/webservice/scripts/gethaipsetupentry.sh system.multiNodeSystem`
rc=$?
if [ "$rc" != "0" ]; then
 echo "System is not a valid OpenScape 4000 installation"
 exit -1
fi

case $deployment in
   $DEP_SINGLE_NODE_SRV | $DEP_LOCAL_SEP_SRV | $DEP_LOCAL_SEP_SRV_SG | $DEP_DSCXLV2_SIMPLEX | $DEP_DSCXLV2_DUPLEX | $DEP_DSCXLV2_DUPLEX_SG | $DEP_DSCXLV2_LOCAL_SEP_DUPLEX | $DEP_DSCXLV2_DUPLEX_REPLACEMENT )
          echo "Deployment is a Host Node"
          exit 1
          ;;
   *)
          echo "Deployment is an Appliance and not a host node"
          exit 0
esac


