Commit 3292864c authored by Bruno Ribas's avatar Bruno Ribas

$CONFFILE environment allows definition of conffile to use at generator.sh

Now generator.sh checks for CONFFILE environment variable to determine
which config file is to be used, if CONFFILE is not set  it will try to use
wwwsdi.conf.

If the file set at $CONFFILE has any access problems generator.sh will exit
properly
Signed-off-by: default avatarBruno Ribas <ribas@c3sl.ufpr.br>
parent 2620c8e6
......@@ -20,7 +20,11 @@
PREFIX=.
test -f $PREFIX/wwwsdi.conf && source $PREFIX/wwwsdi.conf
if test -z "$CONFFILE"; then
test -f $PREFIX/wwwsdi.conf && source $PREFIX/wwwsdi.conf
else
source $CONFFILE || exit $?
fi
#Customizable variables, please refer to wwwsdi.conf to change these values
: ${TYPEDIR:=$PREFIX/TYPES}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment