diff flys-backend/contrib/import_river.sh @ 5355:480d2f1f61cc

Fix import_rivers script for postgres
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 20 Mar 2013 19:02:10 +0100
parents 14186e924534
children 7c646d4d5103
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"

http://dive4elements.wald.intevation.org