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 43ab09f08dbf732b04d57feb76e4a2be42dc03e1 Author: Ruben Undheim <[email protected]> Date: Fri Sep 4 20:31:01 2015 +0200 Now it downloads the selected region --- debian/osm-tile-server-base.postinst | 3 +++ scripts/osm-tile-server-download | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/osm-tile-server-base.postinst b/debian/osm-tile-server-base.postinst index d04d3d0..612af67 100644 --- a/debian/osm-tile-server-base.postinst +++ b/debian/osm-tile-server-base.postinst @@ -120,6 +120,8 @@ case "$1" in REGION=$RET fi + umask 002 + PREVUMASK=$? su $DBUSER -c "echo $REGION > /var/lib/osm-tile-server-base/selected_region.txt" @@ -136,6 +138,7 @@ case "$1" in else su $DBUSER -c "echo \"\" > /var/lib/osm-tile-server-base/status.txt" fi + umask $PREVUMASK ;; diff --git a/scripts/osm-tile-server-download b/scripts/osm-tile-server-download index a97f0a8..5bc4e31 100755 --- a/scripts/osm-tile-server-download +++ b/scripts/osm-tile-server-download @@ -2,8 +2,9 @@ umask 002 +REGION=`cat /var/lib/osm-tile-server-base/selected_region.txt` FILENAME="downloaded.osm.pbf" -URL="http://download.geofabrik.de/europe/norway-latest.osm.pbf" +URL="http://download.geofabrik.de/${REGION}-latest.osm.pbf" COMMAND="wget -O /var/cache/osm-tile-server-base/${FILENAME} ${URL}" echo "The following command will be run to download:\n\n" echo " ${COMMAND}\n\n" -- 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 [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

