From 6df1a9ffd30ca8f88264bbba3574b504d2b5354a Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 22 Nov 2015 18:07:14 +0100 Subject: [PATCH] Taginfo: Make directory in its own rule. --- cookbooks/taginfo/recipes/default.rb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index 418bb604a..f2c22fc73 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -165,14 +165,24 @@ node[:taginfo][:sites].each do |site| notifies :restart, "service[apache2]" end + directory "#{directory}/osmium-tool/build" do + owner 'taginfo' + group 'taginfo' + mode '0755' + action :create + subscribes :run, "git[#{directory}/libosmium]" + subscribes :run, "git[#{directory}/osmium-tool]" + end + execute "compile-osmium" do action :nothing - command "mkdir build && cd build && cmake .. && make" - cwd "#{directory}/osmium-tool" + command "cmake .. && make" + cwd "#{directory}/osmium-tool/build" user "taginfo" group "taginfo" subscribes :run, "git[#{directory}/libosmium]" subscribes :run, "git[#{directory}/osmium-tool]" + subscribes :run, "directory[#{directory}/osmium-tool/build]" end %w(taginfo/web/tmp bin data data/old download sources planet planet/log planet/replication).each do |dir| -- 2.39.5