From: Tom Hughes Date: Sat, 17 Jan 2015 12:26:47 +0000 (+0000) Subject: Build tilelog code as root so www-data can't overwrite it X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b2835d8e4afbe35384457f63d55b2f21bbd027f6?hp=979e98164cc9a6d7216197f01febc918c9a152b9 Build tilelog code as root so www-data can't overwrite it --- diff --git a/cookbooks/tilelog/recipes/default.rb b/cookbooks/tilelog/recipes/default.rb index 9deb70d0b..f87a45af0 100644 --- a/cookbooks/tilelog/recipes/default.rb +++ b/cookbooks/tilelog/recipes/default.rb @@ -36,8 +36,8 @@ git tilelog_source_directory do action :sync repository "https://github.com/zerebubuth/openstreetmap-tile-analyze.git" revision "live" - user "www-data" - group "www-data" + user "root" + group "root" notifies :run, "execute[tilelog-autogen]", :immediate end @@ -45,8 +45,8 @@ execute "tilelog-autogen" do action :nothing command "./autogen.sh" cwd tilelog_source_directory - user "www-data" - group "www-data" + user "root" + group "root" notifies :run, "execute[tilelog-configure]", :immediate end @@ -54,8 +54,8 @@ execute "tilelog-configure" do action :nothing command "./configure --with-boost-libdir=/usr/lib" cwd tilelog_source_directory - user "www-data" - group "www-data" + user "root" + group "root" notifies :run, "execute[tilelog-build]", :immediate end @@ -63,8 +63,8 @@ execute "tilelog-build" do action :nothing command "make" cwd tilelog_source_directory - user "www-data" - group "www-data" + user "root" + group "root" end # resources for running the tile analysis