changeset 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 4d73d87563ab
children ca70952653b9
files backend/contrib/import_river.sh backend/contrib/run_geo.sh
diffstat 2 files changed, 0 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/backend/contrib/import_river.sh	Tue May 16 17:07:20 2017 +0200
+++ b/backend/contrib/import_river.sh	Tue May 16 17:20:53 2017 +0200
@@ -41,19 +41,6 @@
 # Default encoding. Change here if necessary
 export LC_ALL=de_DE@euro
 
-if [ -z "$OPTIONAL_LIBS" ]; then
-    OPTIONAL_LIBS="$(dirname $0)/opt"
-fi
-
-if [ -d "$OPTIONAL_LIBS" ]; then
-    export PATH="$OPTIONAL_LIBS/bin:$PATH"
-    export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH"
-    export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib64:$LD_LIBRARY_PATH"
-    export PYTHONPATH="$OPTIONAL_LIBS/lib/python2.6/site-packages:$PYTHONPATH"
-    export PYTHONPATH="$OPTIONAL_LIBS/lib64/python2.6/site-packages:$PYTHONPATH"
-    export GDAL_DATA="$OPTIONAL_LIBS/share/gdal"
-fi
-
 usage(){
     cat << EOF
 
--- a/backend/contrib/run_geo.sh	Tue May 16 17:07:20 2017 +0200
+++ b/backend/contrib/run_geo.sh	Tue May 16 17:20:53 2017 +0200
@@ -38,16 +38,6 @@
 DIR=`dirname $0`
 DIR=`readlink -f "$DIR"`
 
-OPTIONAL_LIBS="${DIR}"/opt
-if [ -d "$OPTIONAL_LIBS" ]; then
-    export PATH="$OPTIONAL_LIBS/bin:$PATH"
-    export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib:$LD_LIBRARY_PATH"
-    export LD_LIBRARY_PATH="$OPTIONAL_LIBS/lib64:$LD_LIBRARY_PATH"
-    export PYTHONPATH="$OPTIONAL_LIBS/lib/python2.6/site-packages:$PYTHONPATH"
-    export PYTHONPATH="$OPTIONAL_LIBS/lib64/python2.6/site-packages:$PYTHONPATH"
-    export GDAL_DATA="$OPTIONAL_LIBS/share/gdal"
-fi
-
 exec python $DIR/shpimporter/shpimporter.py \
     --directory $RIVER_PATH \
     --river_name "$RIVER_NAME" \

http://dive4elements.wald.intevation.org