From 88e9f7fbdbfb04bd64d62f4df424451662abfb99 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 18 Jun 2020 18:25:10 +0100 Subject: [PATCH] Update statuscake cache file atomically --- bin/mkgeo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mkgeo b/bin/mkgeo index 9b2e4d3..2113c09 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -119,7 +119,8 @@ if ($ENV{STATUSCAKE_USERNAME} && $ENV{STATUSCAKE_APIKEY}) } } - DumpFile("statuscake.yml", $cache); + DumpFile("statuscake-$$.yml", $cache); + link("statuscake-$$.yml", "statuscake.yml"); } # Mark a cluster as up if any servers are up -- 2.39.5