summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-06-13 13:34:57 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-13 13:34:57 +0200
commit57268dceb90e11563dd35991b6a53f4f4c2133c2 (patch)
tree118e052b1d2b53696b7366981f2ff2fb941bff1f /bin
parentb22142f889adbae970c06ab6bf77c23b3bf1ac2a (diff)
downloadjenkins.debian.net-57268dceb90e11563dd35991b6a53f4f4c2133c2.tar.xz
reproducible Debian: add check for correct future
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_node_health_check.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh
index 3e9665e8..9252644c 100755
--- a/bin/reproducible_node_health_check.sh
+++ b/bin/reproducible_node_health_check.sh
@@ -70,6 +70,19 @@ if [ "$(ip link | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' | sort
irc_message debian-reproducible "$HOSTNAME has wrong MTU, please tell the jenkins admins to fix this. (sudo ifconfig eth0 mtu 1500)"
exit 1
fi
+
+#
+# check for correct future
+#
+# (yes this is hardcoded but meh…)
+if [ "$(date +%Y)" = "2019" ] ; then
+ echo "Warning, today is the wrong future: $(date -u)"
+elif [ "$(date +%Y)" = "2018" ] ; then
+ echo "Good, today is the right future: $(date -u)"
+else
+ echo "Cherrish today, $(date -u)"
+fi
+
if ! $DIRTY ; then
echo "$(date -u ) - Everything seems to be fine."
echo