X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/8e9e103e9f748fe7a104c4fba00cc72a847e2d3a..b88032f37b95d57ed9d27d31eee1afaa3e158e02:/cookbooks/tile/templates/default/replicate.erb?ds=sidebyside diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index 862b6a5e7..5d940375b 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -7,7 +7,7 @@ # osmosis --read-replication-interval-init # Send output to the log -exec > /var/log/replicate/replicate.log 2>&1 +exec > /var/log/tile/replicate.log 2>&1 # Change to the replication state directory cd /var/lib/replicate @@ -59,7 +59,7 @@ do <% end -%> # Expire tiles which are touched by the changes - /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 & + sudo -u www-data /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 & fi # Delete old downloads