Mercurial > dive4elements > river
comparison backend/contrib/run_geo.sh @ 8829:f7c49975cc15
Geo-Importer: Install dependencies directly on target system.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 16 May 2017 17:20:53 +0200 |
parents | b2e167f193d7 |
children |
comparison
equal
deleted
inserted
replaced
8828:4d73d87563ab | 8829:f7c49975cc15 |
---|---|
36 RIVER_PATH=$(readlink -f "$RIVER_PATH") | 36 RIVER_PATH=$(readlink -f "$RIVER_PATH") |
37 | 37 |
38 DIR=`dirname $0` | 38 DIR=`dirname $0` |
39 DIR=`readlink -f "$DIR"` | 39 DIR=`readlink -f "$DIR"` |
40 | 40 |
41 OPTIONAL_LIBS="${DIR}"/opt | |
42 if [ -d "$OPTIONAL_LIBS" ]; then | |
43 export PATH="$OPTIONAL_LIBS/bin:$PATH" | |
44 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH" | |
45 export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib64:$LD_LIBRARY_PATH" | |
46 export PYTHONPATH="$OPTIONAL_LIBS/lib/python2.6/site-packages:$PYTHONPATH" | |
47 export PYTHONPATH="$OPTIONAL_LIBS/lib64/python2.6/site-packages:$PYTHONPATH" | |
48 export GDAL_DATA="$OPTIONAL_LIBS/share/gdal" | |
49 fi | |
50 | |
51 exec python $DIR/shpimporter/shpimporter.py \ | 41 exec python $DIR/shpimporter/shpimporter.py \ |
52 --directory $RIVER_PATH \ | 42 --directory $RIVER_PATH \ |
53 --river_name "$RIVER_NAME" \ | 43 --river_name "$RIVER_NAME" \ |
54 --ogr_connection "$OGR_CONNECTION" \ | 44 --ogr_connection "$OGR_CONNECTION" \ |
55 --host $HOST/$BACKEND_NAME \ | 45 --host $HOST/$BACKEND_NAME \ |