Strabon

changeset 240:233f2ca0d7e3

added configuration file for setting defaults in strabon script
author Babis Nikolaou <charnik@di.uoa.gr>
date Sun Jun 03 17:54:40 2012 +0300 (2012-06-03)
parents 612a0ddbb147
children 6e556c0b0b77
files scripts/strabon scripts/strabon.conf
line diff
     1.1 --- a/scripts/strabon	Sun Jun 03 17:47:15 2012 +0300
     1.2 +++ b/scripts/strabon	Sun Jun 03 17:54:40 2012 +0300
     1.3 @@ -131,6 +131,7 @@
     1.4  
     1.5  # read configuration script first
     1.6  if test -e "${STRABON_CONF}"; then
     1.7 +	echo "${CMD}: reading configuration file ${STRABON_CONF}"
     1.8  	. ${STRABON_CONF}
     1.9  fi
    1.10  
    1.11 @@ -229,9 +230,7 @@
    1.12  				exit 1
    1.13  			else
    1.14  				# if true, then debug has been set ON in command line
    1.15 -				if $DEBUG; then
    1.16 -					echo "${CMD}: Reading configuration file \"${STRABON_CONF}\""
    1.17 -				fi
    1.18 +				echo "${CMD}: Reading configuration file \"${STRABON_CONF}\""
    1.19  
    1.20  				. ${STRABON_CONF}
    1.21  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/scripts/strabon.conf	Sun Jun 03 17:54:40 2012 +0300
     2.3 @@ -0,0 +1,26 @@
     2.4 +#
     2.5 +# Comments are welcome by using character #
     2.6 +# Configuration variables are case sensitive
     2.7 +# (if in doubt consult the help output of strabon script)
     2.8 +#
     2.9 +
    2.10 +# the database engine (one of postgis or monetdb)
    2.11 +DATABASE=postgis
    2.12 +
    2.13 +# the port to be used for the database connection
    2.14 +PORT=5432
    2.15 +
    2.16 +# the hostname to be used for the database connection
    2.17 +HOST=localhost
    2.18 +
    2.19 +# the username to be used for the database connection
    2.20 +DBUSER=postgres
    2.21 +
    2.22 +# the password to be used for the database connection
    2.23 +DBPASS=postgres
    2.24 +
    2.25 +# the database to connect to
    2.26 +DB=endpoint
    2.27 +
    2.28 +# one of true or false
    2.29 +DEBUG=false