Mercurial > dive4elements > river
changeset 5355:480d2f1f61cc
Fix import_rivers script for postgres
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 20 Mar 2013 19:02:10 +0100 |
parents | 555a99dff849 |
children | a5291a126e24 |
files | flys-backend/contrib/import_river.sh |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/contrib/import_river.sh Wed Mar 20 17:58:45 2013 +0100 +++ b/flys-backend/contrib/import_river.sh Wed Mar 20 19:02:10 2013 +0100 @@ -78,7 +78,7 @@ } OPTS=`getopt -o ?u:w:h:p:d: \ - -l help,username:,password:,host:,port:,db-name:,skip-hydro,skip-morpho,skip-geo,skip-wst \ + -l help,username:,password:,host:,port:,db-name:,skip-hydro,skip-morpho,skip-geo,skip-wst,postgres \ -n $0 -- "$@"` if [ $? != 0 ] ; then usage; fi eval set -- "$OPTS" @@ -161,7 +161,7 @@ LOG_DIR=${LOG}/${RIVER_NAME}-$DATE mkdir -p ${LOG_DIR} -if [ "POSTGRES" = "TRUE" ]; then +if [ "$POSTGRES" = "TRUE" ]; then JAR=$(echo "$JAR" | sed 's/importer/importer_psql/') if [ ! -r "$JAR" ]; then echo "Could not find Postgres importer $JAR"