aboutsummaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rwxr-xr-xdebian/postinst18
1 files changed, 18 insertions, 0 deletions
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#