From 30f791628692be54a7222ce46f0a2d0b163fa378 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 13 Apr 2014 17:06:44 +0100 Subject: Imported Debian patch 2.13.0-1 --- debian/postinst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 debian/postinst (limited to 'debian/postinst') diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..5487b49 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_get openstreetmap-carto/fetch-data +if [ "$RET" = "true" ]; then + cd /usr/share/openstreetmap-carto/ && ./get-shapefiles.sh +fi + +db_get openstreetmap-carto/database-name +if [ "$RET" != "gis" ]; then + sed -i -e"s/\[gis\]/\[$RET\]/" /usr/share/openstreetmap-carto/style.xml +fi + +#DEBHELPER# -- cgit v1.2.3