aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL/tasks.d
diff options
context:
space:
mode:
authorStéphane Desneux <stephane.desneux@iot.bzh>2018-07-04 12:33:37 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-07-04 12:33:37 +0000
commit54a390651af2fe577996d4e55244352f776a923c (patch)
treebed8086fa4f060544d2591b9fc69b5a458a1de03 /INSTALL/tasks.d
parentc378b34f9e455aec054db824b90ec862aeac8f51 (diff)
parent645092413275f7212d82ae4ccc401a0c318a8369 (diff)
Merge "Add timeouts and retries to wget calls"
Diffstat (limited to 'INSTALL/tasks.d')
-rw-r--r--INSTALL/tasks.d/30_yocto6
-rw-r--r--INSTALL/tasks.d/80_xds2
2 files changed, 5 insertions, 3 deletions
diff --git a/INSTALL/tasks.d/30_yocto b/INSTALL/tasks.d/30_yocto
index 652ea5f..60bb428 100644
--- a/INSTALL/tasks.d/30_yocto
+++ b/INSTALL/tasks.d/30_yocto
@@ -1,4 +1,6 @@
#!/bin/bash
+
+set -e
# install prereqs for bitbake (Yocto mega-manual)
# http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#detailed-supported-distros
@@ -18,7 +20,7 @@ apt-get install -y git-review
apt-get install -y libncurses5-dev
# copy meta init script in ~devel/bin:
-wget -O $DEVUSER_HOME/bin/prepare_meta https://raw.githubusercontent.com/iotbzh/agl-manifest/master/prepare_meta
+wget -t 3 -T 60 -O $DEVUSER_HOME/bin/prepare_meta https://raw.githubusercontent.com/iotbzh/agl-manifest/master/prepare_meta
chmod +x $DEVUSER_HOME/bin/*
# for image creation and compression
@@ -36,6 +38,6 @@ for x in $INSTDIR/tools/scripts_yocto/*; do
done
# grab and install repo tool
-wget -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo
+wget -t 3 -T 60 -O /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo
chmod a+x /usr/local/bin/repo
diff --git a/INSTALL/tasks.d/80_xds b/INSTALL/tasks.d/80_xds
index c81be96..b5c4372 100644
--- a/INSTALL/tasks.d/80_xds
+++ b/INSTALL/tasks.d/80_xds
@@ -2,7 +2,7 @@
export DISTRO="Debian_9.0"
-wget -O - http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/app-Development/${DISTRO}/Release.key | apt-key add -
+wget -t 3 -T 60 -O - http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/app-Development/${DISTRO}/Release.key | apt-key add -
cat >> /etc/apt/sources.list.d/AGL.list <<EOF
deb http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/app-Development/${DISTRO}/ ./