]> git.openstreetmap.org Git - chef.git/commitdiff
Track sequence and timestamp of last update
authorTom Hughes <tom@compton.nu>
Wed, 22 Nov 2023 22:39:37 +0000 (22:39 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 22 Nov 2023 22:39:37 +0000 (22:39 +0000)
cookbooks/tile/templates/default/expire-tiles-osm2pgsql.erb

index e2cf08b3ae539f3861dfac77378095f0e663ddf4..0ad14e80358d15331b0f1fa81ba84ad54104a418 100644 (file)
@@ -2,6 +2,9 @@
 
 # DO NOT EDIT - This file is being maintained by Chef
 
+sequence="$1"
+timestamp="$2"
+
 render_expired \
   --map=default \
   --socket=/var/run/renderd/renderd.sock \
@@ -10,3 +13,6 @@ render_expired \
   --touch-from=13 < /var/lib/replicate/dirty-tiles.txt
 
 rm -f /var/lib/replicate/dirty-tiles.txt
+
+echo "$sequence" > /var/log/replicate/sequence.txt
+echo "$timestamp" > /var/log/replicate/timestamp.txt