From 57268dceb90e11563dd35991b6a53f4f4c2133c2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 13 Jun 2017 13:34:57 +0200 Subject: reproducible Debian: add check for correct future Signed-off-by: Holger Levsen --- bin/reproducible_node_health_check.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bin/reproducible_node_health_check.sh') 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 -- cgit v1.2.3-54-g00ecf