diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-10 17:35:48 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-10 17:35:48 +0200 |
commit | 00a72031df3c9d2d5637a779f2ae3e512f9a24b1 (patch) | |
tree | 24dd2178248107f9f9f35a5e5b1db219b04bc40d /bin | |
parent | b4ab0af1c8a5f66d84fd598f71f4ed3e51638780 (diff) | |
download | jenkins.debian.net-00a72031df3c9d2d5637a779f2ae3e512f9a24b1.tar.xz |
fix copy+paste error
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chroot-run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index dfdf75c8..ef1ae089 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -56,7 +56,7 @@ bootstrap() { local TMPLOG=$(mktemp -p $CHROOT_BASE/ chroot-run-$DISTRO.XXXXXXXXX) echo "$(date -u ) - bootstraping $DISTRO into $CHROOT_TARGET now." set +e - sudo debootstrap BOOTSTRAP_OPTIONS $DISTRO $CHROOT_TARGET $MIRROR | tee $TMPLOG + sudo debootstrap $BOOTSTRAP_OPTIONS $DISTRO $CHROOT_TARGET $MIRROR | tee $TMPLOG local RESULT=$(egrep "E: Couldn't download packages" $TMPLOG) rm $TMPLOG set -e @@ -64,7 +64,7 @@ bootstrap() { echo "$(date -u) - initial debootstrap failed, sleeping 5min before retrying..." sudo rm -rf --one-file-system $CHROOT_TARGET sleep 5m - if ! sudo debootstrap BOOTSTRAP_OPTIONS $DISTRO $CHROOT_TARGET $MIRROR ; then + if ! sudo debootstrap $BOOTSTRAP_OPTIONS $DISTRO $CHROOT_TARGET $MIRROR ; then SLEEPTIME="30m" echo "$(date -u ) - debootstrap failed, slowing down, sleeping $SLEEPTIME now..." sleep $SLEEPTIME |