Create output directory.
authorMatt Amos <zerebubuth@gmail.com>
Mon, 15 Dec 2014 18:40:22 +0000 (18:40 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Wed, 31 Dec 2014 14:10:06 +0000 (14:10 +0000)
cookbooks/planet/recipes/tilelog.rb

index f5480f547ddeab76b578f21048eec13d6eff6b67..56023d62e4357afaaf6b2fa246bc4773d8cd2d78 100644 (file)
@@ -31,6 +31,13 @@ tilelog_source_directory = node[:planet][:tilelog_source_directory]
 tilelog_input_directory = node[:planet][:tilelog_input_directory]
 tilelog_output_directory = node[:planet][:tilelog_output_directory]
 
+directory tilelog_output_directory do
+  action :create
+  user "www-data"
+  group "www-data"
+  mode 0755
+end
+
 execute "tilelog-build" do
   action :nothing
   command "make"