Fix renderd plugin path for 14.04
authorTom Hughes <tom@compton.nu>
Wed, 29 Apr 2015 19:42:09 +0000 (20:42 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 29 Apr 2015 19:42:09 +0000 (20:42 +0100)
cookbooks/tile/templates/default/renderd.conf.erb

index bb1a28c..4ce29d9 100644 (file)
@@ -7,7 +7,11 @@ tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats
 
 [mapnik]
+<% if node[:lsb][:release].to_f >= 14.04 -%>
+plugins_dir=/usr/lib/mapnik/2.2/input
+<% else -%>        
 plugins_dir=/usr/lib/mapnik/input
+<% end -%>        
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>