From: Rudolf Polzer <divverent@xonotic.org>
Date: Mon, 14 Apr 2014 18:37:06 +0000 (+0200)
Subject: Wait about 5 minutes before showing info about newly generated
X-Git-Tag: xonotic-v0.8.0~37
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=918a908dc92113cb0d176f006ebfdd9f475bdd35;p=xonotic%2Fxonotic.git

Wait about 5 minutes before showing info about newly generated
screenshots on IRC.

This allows srv02.xonotic.org to host static-only pages instead. Faster,
more secure, less heartbleed, etc.
---

diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild
index 0499f837..08c902ca 100755
--- a/misc/tools/xonotic-map-compiler-autobuild
+++ b/misc/tools/xonotic-map-compiler-autobuild
@@ -292,6 +292,9 @@ screenshotthemap()
 	rsync -vaSHP "$M-$blobhash" "$url_ssh"
 	rsync -vaSHP "$M" "$url_ssh""latest/"
 	if [ -n "$IRCSPAM" ]; then
+		# It takes about 5 minutes for the server to update.
+		sleep 360  # Cut it one more minute of slack.
+
 		$IRCSPAM < "$M-$blobhash/$M.ircss" || true
 	fi
 	if [ -n "$BUILD_ONE" ]; then