]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/replicate.erb
Make the replication service sudo to www-data to expire tiles
[chef.git] / cookbooks / tile / templates / default / replicate.erb
index f996afb04e4248637422f38d675796c5b600bf1b..5d940375bf36e60d6e96a19c5b5692fc6b3e6a1e 100644 (file)
@@ -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