From 353173391ff28ab971ac2d0b91f35fbcaf31721c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 17 Oct 2016 10:47:25 +0200 Subject: reproducible Debian: notify the irc channel if the proxy is gone, which seems to be an i386 only problem which needs a bug report… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/reproducible_maintenance.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 08ccad47..c9be3d10 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -42,8 +42,15 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then fi # for Debian, first run some checks… +set +e +# check for working proxy echo "$(date -u) - testing whether the proxy works..." curl http://www.debian.org > /dev/null +if [ $? -eq 1 ] ; then + irc_message debian-reproducible "Proxy is down for $HOSTNAME, please tell the jenkins admins to fix this. (sudo service squid3 restart)" + exit 1 +fi +# check for correct MTU echo "$(date -u) - testing whether the network interfaces MTU is 1500..." if [ "$(ip link | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' | sort -u)" != "1500" ] ; then ip link @@ -51,7 +58,6 @@ 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 -set +e echo "$(date -u) - updating the schroots and pbuilder now..." # use host architecture (only) -- cgit v1.2.3-70-g09d2