This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository osm-tile-server.

commit c80a7bd260a7ad2cff7e0322fa81b1b88fa97551
Author: Ruben Undheim <ruben.undh...@gmail.com>
Date:   Fri Sep 4 20:20:23 2015 +0200

    Write region to file
---
 debian/osm-tile-server-base.postinst | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/debian/osm-tile-server-base.postinst 
b/debian/osm-tile-server-base.postinst
index e3a4275..d04d3d0 100644
--- a/debian/osm-tile-server-base.postinst
+++ b/debian/osm-tile-server-base.postinst
@@ -95,6 +95,34 @@ case "$1" in
         chmod 2775 /var/lib/osm-tile-server-base
 
 
+        db_get osm-tile-server/continent
+        CONTINENT=$RET
+        if   [ "$CONTINENT" = "Europe" ] ; then
+            db_get osm-tile-server/country_europe
+            REGION=$RET
+        elif [ "$CONTINENT" = "Asia" ] ; then
+            db_get osm-tile-server/country_asia
+            REGION=$RET
+        elif [ "$CONTINENT" = "North America" ] ; then
+            db_get osm-tile-server/country_namerica
+            REGION=$RET
+        elif [ "$CONTINENT" = "South America" ] ; then
+            db_get osm-tile-server/country_samerica
+            REGION=$RET
+        elif [ "$CONTINENT" = "Africa" ] ; then
+            db_get osm-tile-server/country_africa
+            REGION=$RET
+        elif [ "$CONTINENT" = "Central America" ] ; then
+            db_get osm-tile-server/country_camerica
+            REGION=$RET
+        elif [ "$CONTINENT" = "Australia and Oceania" ] ; then
+            db_get osm-tile-server/country_australia
+            REGION=$RET
+        fi
+
+        su $DBUSER -c "echo $REGION > 
/var/lib/osm-tile-server-base/selected_region.txt"
+
+
         if [ "$IMPORTSAMPLE" = "true" ] ; then
             su $DBUSER -c "osm2pgsql --slim -d $DBNAME --cache-strategy sparse 
-C 100 --hstore -S /usr/share/osm2pgsql/default.style 
/usr/share/osm-tile-server-base/samples/liechtenstein-latest.osm.pbf"
         fi

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/osm-tile-server.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to