aboutsummaryrefslogtreecommitdiff
path: root/debian/postinst
blob: 5487b49ec0dc4dbaa5f0d950cccc4d180b1043cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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#