From 4d55f87853d436a41bfd9c81b51083ece5311f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 26 Sep 2024 16:14:26 -0300 Subject: [PATCH] install: Update curl lias with retry-delay and connection-timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- install/boards/bcm_2712.sh | 2 +- install/boards/bcm_27xx.sh | 2 +- install/boards/configure_board.sh | 2 +- install/network/avahi.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install/boards/bcm_2712.sh b/install/boards/bcm_2712.sh index 8e7ed4b194..bbc766b823 100644 --- a/install/boards/bcm_2712.sh +++ b/install/boards/bcm_2712.sh @@ -10,7 +10,7 @@ REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}" ROOT="$REMOTE/$VERSION" CMDLINE_FILE=/boot/firmware/cmdline.txt CONFIG_FILE=/boot/firmware/config.txt -alias curl="curl --retry 6 --max-time 15 --retry-all-errors" +alias curl="curl --retry 6 --max-time 15 --retry-all-errors --retry-delay 20 --connect-timeout 60" # Download, compile, and install spi0 mosi-only device tree overlay for # neopixel LED on navigator board diff --git a/install/boards/bcm_27xx.sh b/install/boards/bcm_27xx.sh index 6d7330efe0..73e200e6ed 100755 --- a/install/boards/bcm_27xx.sh +++ b/install/boards/bcm_27xx.sh @@ -8,7 +8,7 @@ REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}" ROOT="$REMOTE/$VERSION" CMDLINE_FILE=/boot/cmdline.txt CONFIG_FILE=/boot/config.txt -alias curl="curl --retry 6 --max-time 15 --retry-all-errors" +alias curl="curl --retry 6 --max-time 15 --retry-all-errors --retry-delay 20 --connect-timeout 60" # Download, compile, and install spi0 mosi-only device tree overlay for # neopixel LED on navigator board diff --git a/install/boards/configure_board.sh b/install/boards/configure_board.sh index 3c7715a785..e5f06d0876 100644 --- a/install/boards/configure_board.sh +++ b/install/boards/configure_board.sh @@ -6,7 +6,7 @@ GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-bluerobotics/blueos-docker} REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}" ROOT="$REMOTE/$VERSION" CONFIGURE_BOARD_PATH="$ROOT/install/boards" -alias curl="curl --retry 6 --max-time 15 --retry-all-errors" +alias curl="curl --retry 6 --max-time 15 --retry-all-errors --retry-delay 20 --connect-timeout 60" function board_not_detected { echo "Hardware not identified in $1, please report back the following line:" diff --git a/install/network/avahi.sh b/install/network/avahi.sh index 91a49d5fe5..9abacbcb7f 100644 --- a/install/network/avahi.sh +++ b/install/network/avahi.sh @@ -5,7 +5,7 @@ GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-bluerobotics/blueos-docker} REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}" REMOTE="$REMOTE/$VERSION" CONFIGURE_NETWORK_PATH="$REMOTE/install/network" -alias curl="curl --retry 6 --max-time 15 --retry-all-errors" +alias curl="curl --retry 6 --max-time 15 --retry-all-errors --retry-delay 20 --connect-timeout 60" # Exit if something goes wrong set -e