#!/bin/sh
#
# get_uls_bin
#
# get binary path for ULS procedures
#
#####################################
#
ULSDIR=""
if [ -f /etc/unix2web/uls.conf ]
 then
  ULSDIR=`grep 'U2WPARS.*=.*-b ' /etc/unix2web/uls.conf | sed 's/.*-b \([^ "]*\).*/\1/'`
fi
if [ -z "$ULSDIR" ]
 then
  if [ -d /srv/uls/wwwbin ]
   then
    echo "/srv/uls/wwwbin"
  elif [ -d /usr/local/uls/wwwbin ]
   then
    echo /usr/local/uls/wwwbin
  else
    echo /usr/local/bin
  fi
else
  echo $ULSDIR
fi
