From: Jochen Topf Date: Sun, 22 Nov 2015 17:07:14 +0000 (+0100) Subject: Taginfo: Make directory in its own rule. X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/6df1a9ffd30ca8f88264bbba3574b504d2b5354a?ds=sidebyside;hp=49e848652d7455d006e2f90c1fc54cfdbba8afcf Taginfo: Make directory in its own rule. --- 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|