diff --git a/packaging/scripts/mongodb-backup_builder.sh b/packaging/scripts/mongodb-backup_builder.sh index 7f0feecb6..6f9c30f0c 100644 --- a/packaging/scripts/mongodb-backup_builder.sh +++ b/packaging/scripts/mongodb-backup_builder.sh @@ -141,7 +141,11 @@ install_golang() { elif [ x"$ARCH" = "xaarch64" ]; then GO_ARCH="arm64" fi - wget https://go.dev/dl/go1.22.8.linux-${GO_ARCH}.tar.gz -O /tmp/go1.22.tar.gz + for i in {1..3}; do + wget https://go.dev/dl/go1.22.8.linux-${GO_ARCH}.tar.gz -O /tmp/go1.22.tar.gz && break + echo "Failed to download GOLang, retrying in 10 seconds..." + sleep 10 + done tar --transform=s,go,go1.22, -zxf /tmp/go1.22.tar.gz rm -rf /usr/local/go* mv go1.22 /usr/local/