diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-13 17:21:13 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-13 17:21:13 +0200 |
commit | ebe3985d952dda3e42f6856726de216b07e64c26 (patch) | |
tree | 5439ce55f0ab0089e7ad52d41c308e6496ade764 /bin/reproducible_maintenance.sh | |
parent | b0a80c31af4915bcc9667e1c9c332613c9bd16dd (diff) | |
download | jenkins.debian.net-ebe3985d952dda3e42f6856726de216b07e64c26.tar.xz |
reproducible Debian: move proxy check to maintenance job…
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-x | bin/reproducible_maintenance.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index e71f3dc4..2e017525 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -52,6 +52,21 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then fi fi +# +# we fail hard +# +set +e + +# +# check for working proxy +# +echo "$(date -u) - testing whether the proxy works..." +curl http://www.debian.org > /dev/null +if [ $? -ne 0 ] ; then + echo "Warning: curl http://www.debian.org failed, probably the proxy is down for $HOSTNAME…" + DIRTY=true +fi + echo "$(date -u) - updating the schroots and pbuilder now..." # use host architecture (only) ARCH=$(dpkg --print-architecture) |