[Dive4elements-commits] [PATCH 1 of 2] Fix import_rivers script for postgres
Wald Commits
scm-commit at wald.intevation.org
Wed Mar 20 19:02:45 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1363802530 -3600
# Node ID 480d2f1f61cc2a74bd47c9dc73a9ff7357f3bf4c
# Parent 555a99dff84927bccffe988942b29f5ee7c31824
Fix import_rivers script for postgres
diff -r 555a99dff849 -r 480d2f1f61cc flys-backend/contrib/import_river.sh
--- 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"
More information about the Dive4elements-commits
mailing list