#!/bin/bash
#
# Fierro Soft - Lambda Sistemas
# Fierro Client wrapper launcher
# created on Jun 17, 2005.
#
if [ -f /etc/opt/fierro/clientserver.conf ]; then
    . /etc/opt/fierro/clientserver.conf
fi

if [ -n "$SERVER" ]; then
	APPEND="--server $SERVER --webserver $WEBSERVER"
fi

if [ -n "$SUCURSAL" ]; then
    APPEND="$APPEND --sucursal $SUCURSAL"
fi

if [ -f ~/.fierrorc ]; then
    source ~/.fierrorc
fi

if [ -z $PYTHON ]; then
	PYTHON=python
fi

export FIERRO_LOGFILE=/var/log/fierroclient.log

/opt/fierroclient-1.43.0/fierro $APPEND "$@"
