]> git.ipfire.org Git - ipfire.org.git/commitdiff
crontab: Ensure that we are only running blog announcements once
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Jan 2024 14:16:57 +0000 (14:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Jan 2024 14:16:57 +0000 (14:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/crontab/ipfire

index a5cb7c2944fdb73a33b9e005b391afb26337d6e3..e44d13941afd78b349a6634f527ec4ad0d5160a8 100644 (file)
@@ -13,7 +13,7 @@ SHELL=/bin/bash
 */5 * * * *    nobody  ipfire.org --logging=error run-campaigns
 
 # Announce blog posts
-*/5 * * * *    nobody  ipfire.org announce-blog-posts
+*/5 * * * *    nobody  flock /tmp/.ipfire.org.announce-blog-posts ipfire.org announce-blog-posts
 
 # Cleanup once an hour
 30 * * * *     nobody  ipfire.org cleanup