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 542d91ec15b3000c1dd9c15b238adf14b69fe59a
Author: Ruben Undheim <ruben.undh...@gmail.com>
Date:   Mon Sep 7 08:23:09 2015 +0200

    Added interest-noawait trigger for /usr/share/openstreetmap-carto/style.xml
---
 debian/osm-tile-server-base.postinst | 8 ++++++++
 debian/osm-tile-server-base.triggers | 1 +
 2 files changed, 9 insertions(+)

diff --git a/debian/osm-tile-server-base.postinst 
b/debian/osm-tile-server-base.postinst
index a2ffd3a..38b748b 100644
--- a/debian/osm-tile-server-base.postinst
+++ b/debian/osm-tile-server-base.postinst
@@ -142,6 +142,14 @@ case "$1" in
 
     ;;
 
+    triggered)
+        db_get osm-tile-server/db-name
+        DBNAME=$RET
+        cp /usr/share/openstreetmap-carto/style.xml 
/usr/share/openstreetmap-carto/style-osm-tile-server.xml
+
+        sed -i 's/\(dbname">.*CDATA\)\[[^\]*\]/\1\['${DBNAME}'\]\]/' 
/usr/share/openstreetmap-carto/style-osm-tile-server.xml
+    ;;
+
     abort-upgrade|abort-remove|abort-deconfigure)
     ;;
 
diff --git a/debian/osm-tile-server-base.triggers 
b/debian/osm-tile-server-base.triggers
new file mode 100644
index 0000000..5489cfd
--- /dev/null
+++ b/debian/osm-tile-server-base.triggers
@@ -0,0 +1 @@
+interest-noawait /usr/share/openstreetmap-carto/style.xml

-- 
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
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to