From 9e7fa862935de1f8dfabbebf3f8e6e4bb63ef684 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 7 Sep 2015 17:37:09 +0200 Subject: sleep 5m, before retrying on failures --- bin/chroot-installation.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index 82f111bf..cb354124 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -59,8 +59,9 @@ execute_ctmpfile() { RESULT=$(egrep "Failed to fetch.*(Unable to connect to|Connection failed|Size mismatch|Cannot initiate the connection to|Bad Gateway)" $TMPLOG || true) if [ ! -z "$RESULT" ] ; then echo - echo "Warning: Network problem detected." - echo "Trying to workaround temporarily failure fetching packages, trying again..." + echo "$(date -u) - Warning: Network problem detected." + echo "$(date -u) - trying to workaround temporarily failure fetching packages, sleeping 5min before trying again..." + sleep 5m echo sudo chroot $CHROOT_TARGET $TMPFILE else -- cgit v1.2.3-70-g09d2