#!/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#