]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/replicate.erb
Separate the replication and expiry tasks for tile servers
[chef.git] / cookbooks / tile / templates / default / replicate.erb
index 145f6eb407c9f35e980b7a366a2a035143e15c5b..ecc6b69b036fd79dcf977c61b2afe1de4c8eb5b5 100644 (file)
@@ -76,8 +76,8 @@ do
             # No need to rollback now
             rm state-prev.txt
 
-            # Expire tiles which are touched by the changes
-            sudo -u www-data /usr/local/bin/expire-tiles ${file} > /dev/null 2>&1 &
+            # Queue these changes for expiry processing
+            ln ${file} expire-queue/$file
         fi
 
         # Delete old downloads